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: I9636d178d728a393dc6125d1021159cd41c68a28
This commit is contained in:
parent
49ce3b57ea
commit
05fae24e81
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
- name: Ensure remote wheel building is disabled in developer mode
|
- name: Ensure remote wheel building is disabled in developer mode
|
||||||
set_fact:
|
set_fact:
|
||||||
venv_build_host: "{{ ansible_hostname }}"
|
venv_build_host: "{{ inventory_hostname }}"
|
||||||
when:
|
when:
|
||||||
- ceilometer_developer_mode | bool
|
- ceilometer_developer_mode | bool
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue