Fix to get HOME environment in dhcp-provisioning validation
The validation of dhcp-provisioning fails because it doesn't see
the correct path of undercloud.conf. The playbook has "become: true",
so the ansible_env.HOME is the home directory of root.
lookup(env, HOME) can get the home directory for the user.
Change-Id: I7c7de26f09f36d88b777be76027ad4ac66deda6b
(cherry picked from commit 8e4958cd75
)
This commit is contained in:
parent
37bfae36d4
commit
d322fc9609
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
- name: Gather undercloud.conf values
|
- name: Gather undercloud.conf values
|
||||||
validations_read_ini:
|
validations_read_ini:
|
||||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
path: "{{ lookup('env', 'HOME') }}/undercloud.conf"
|
||||||
section: DEFAULT
|
section: DEFAULT
|
||||||
key: local_interface
|
key: local_interface
|
||||||
ignore_missing_file: true
|
ignore_missing_file: true
|
||||||
|
|
Loading…
Reference in New Issue