From 90627ef2a274f38e5b123dfed42f2cc1e0c7611a Mon Sep 17 00:00:00 2001 From: "Lubosz \"diltram\" Kosnik" Date: Thu, 27 Oct 2016 14:08:13 -0500 Subject: [PATCH] Use become: True when updating /etc/hosts Add become: True to update /etc/hosts in pre-install baremetal configuration TrivialBug Change-Id: I21e8125272d6b980662779ad55899f04cb6b6a50 --- ansible/roles/baremetal/tasks/pre-install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml index 20988ecc0a..3cfa635e08 100644 --- a/ansible/roles/baremetal/tasks/pre-install.yml +++ b/ansible/roles/baremetal/tasks/pre-install.yml @@ -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