From 798986061a0d5411c4e961cf09312b24c9319679 Mon Sep 17 00:00:00 2001 From: Heba Naser Date: Wed, 6 Feb 2019 09:33:17 -0500 Subject: [PATCH] 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: I811fa941aa18352fc410f578d849a68ad0d50bfe --- tasks/aodh_install_source.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/aodh_install_source.yml b/tasks/aodh_install_source.yml index 7ef5671..c293b8b 100644 --- a/tasks/aodh_install_source.yml +++ b/tasks/aodh_install_source.yml @@ -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: - aodh_developer_mode | bool @@ -47,4 +47,3 @@ - section: "aodh" option: "venv_tag" value: "{{ aodh_venv_tag }}" -