Files
ansible-pull/roles/base/tasks/system_setup/hosts.yml
rene 2969fd493e revert e9bbff86d9
revert 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 12:13:39 +00: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