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