Add a judgement condition in file pre-install.yml

keep consistent with above

TrivialFix

Change-Id: Ia4b531eae1eb31b047b3486861c30c93abb8132d
This commit is contained in:
zeyu Zhu 2016-10-22 16:32:19 +08:00
parent 430ddf9dd3
commit 409b635b45

View File

@ -28,7 +28,7 @@
{% for host in groups['all'] %}
{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }}
{% endfor %}
when: customize_etc_hosts | bool
when: customize_etc_hosts | bool == True
- name: ensure sudo group is present
group: name=sudo state=present