Use become: True when updating /etc/hosts
Add become: True to update /etc/hosts in pre-install baremetal configuration TrivialBug Change-Id: I21e8125272d6b980662779ad55899f04cb6b6a50
This commit is contained in:
parent
f8163da8f3
commit
90627ef2a2
@ -28,6 +28,7 @@
|
||||
{% for host in groups['all'] %}
|
||||
{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }}
|
||||
{% endfor %}
|
||||
become: True
|
||||
when: customize_etc_hosts | bool == True
|
||||
|
||||
- name: ensure sudo group is present
|
||||
|
Loading…
Reference in New Issue
Block a user