Files
ansible-pull/roles/base/tasks/system_setup/hosts.yml
rene e9bbff86d9 changed the ip for gitlab and added the ip for docker01
changed the ip for gitlab and added the ip for docker01
2022-07-23 11:53:56 +00:00

13 lines
412 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.238', fqdn: 'gitlab.social.my-wan.de docker01.universe.local docker01'}
- { ip: '192.168.1.240', fqdn: 'coruscant.universe.local coruscant'}
when:
- set_hosts is defined
- set_hosts == true