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:
Lubosz "diltram" Kosnik 2016-10-27 14:08:13 -05:00
parent f8163da8f3
commit 90627ef2a2

View File

@ -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