Files
ansible-pull/roles/server/tasks/system_setup/hosts.yml
rene ee0dc27f18 install ssmtp
needed for servers that are no mailservers
2022-03-11 09:38:10 +01:00

12 lines
331 B
YAML

- name: system setup | /etc/hosts | populate
lineinfile:
path: "/etc/hosts"
line: "{{ item.ip }} {{ item.fqdn }}"
mode: '0644'
owner: 'root'
group: 'root'
loop:
- { ip: '192.168.1.240', fqdn: 'gitlab.social.my-wan.de coruscant.universe.local'}
when:
- set_hosts is defined
- set_hosts == true