venv: use inventory_hostname instead of ansible_hostname
It is possible that the hostname of the system does not match the one in the inventory which means that the delegate_to or the comparision to inventory_hostname will fail in the tasks later. Change-Id: I5bb8d7e3e54f896c0685576516e4b08ca3e1e29d
This commit is contained in:
parent
d421fe7381
commit
00563670d3
|
@ -30,7 +30,7 @@
|
|||
|
||||
- name: Ensure remote wheel building is disabled in developer mode
|
||||
set_fact:
|
||||
venv_build_host: "{{ ansible_hostname }}"
|
||||
venv_build_host: "{{ inventory_hostname }}"
|
||||
when:
|
||||
- barbican_developer_mode | bool
|
||||
|
||||
|
|
Loading…
Reference in New Issue