From 409b635b455c9dad04ed688b9a4e1e43346218bc Mon Sep 17 00:00:00 2001 From: zeyu Zhu Date: Sat, 22 Oct 2016 16:32:19 +0800 Subject: [PATCH] Add a judgement condition in file pre-install.yml keep consistent with above TrivialFix Change-Id: Ia4b531eae1eb31b047b3486861c30c93abb8132d --- ansible/roles/baremetal/tasks/pre-install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml index 43993229ab..20988ecc0a 100644 --- a/ansible/roles/baremetal/tasks/pre-install.yml +++ b/ansible/roles/baremetal/tasks/pre-install.yml @@ -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