13 lines
412 B
YAML
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 |