diff options
| author | Lubosz "diltram" Kosnik <diltram@gmail.com> | 2016-10-27 14:08:13 -0500 |
|---|---|---|
| committer | Lubosz "diltram" Kosnik <diltram@gmail.com> | 2016-10-27 15:10:55 -0500 |
| commit | 90627ef2a274f38e5b123dfed42f2cc1e0c7611a (patch) | |
| tree | 8233fa1018075e9dbc07b7cfe8e424a69838d555 /ansible | |
| parent | f8163da8f3e962a9ef952e258cc7a6643fd988ed (diff) | |
| download | kolla-90627ef2a274f38e5b123dfed42f2cc1e0c7611a.tar.gz kolla-90627ef2a274f38e5b123dfed42f2cc1e0c7611a.zip | |
Use become: True when updating /etc/hosts
Add become: True to update /etc/hosts in pre-install baremetal configuration
TrivialBug
Change-Id: I21e8125272d6b980662779ad55899f04cb6b6a50
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/baremetal/tasks/pre-install.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml index 20988ecc0..3cfa635e0 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 |
