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: If57ce8571a8104a5657581aaf6ff7934047e5085
This commit is contained in:
Heba Naser 2019-02-06 09:49:03 -05:00
parent b047ad2109
commit 08cbc0d5d5
1 changed files with 1 additions and 1 deletions

View File

@ -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:
- cinder_developer_mode | bool