forked from saratov/infra
another fix
This commit is contained in:
parent
182b4ec5ec
commit
dc2eade3a9
@ -56,7 +56,8 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
- name: register nodes in /etc/hosts
|
- name: register nodes in /etc/hosts
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts regexp=".*{{ item }}$"
|
path: /etc/hosts
|
||||||
|
regexp: ".*{{ item }}$"
|
||||||
line: "{{ hostvars[item].ansible_default_ipv4.address }} {{ item }}"
|
line: "{{ hostvars[item].ansible_default_ipv4.address }} {{ item }}"
|
||||||
state: present
|
state: present
|
||||||
when: hostvars[item].ansible_default_ipv4.address is defined
|
when: hostvars[item].ansible_default_ipv4.address is defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user