From 09587486a6d9dade2fa9be3afc608f9a7eb763df Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 4 Jan 2019 23:25:00 -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: Id5df93612d71f8f1ba14fae9cbf28cb6a645fd4e --- tasks/nova_install_source.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/nova_install_source.yml b/tasks/nova_install_source.yml index e16e369f..ba45d227 100644 --- a/tasks/nova_install_source.yml +++ b/tasks/nova_install_source.yml @@ -31,7 +31,7 @@ - name: Ensure remote wheel building is disabled in developer mode set_fact: - venv_build_host: "{{ ansible_hostname }}" + venv_build_host: "{{ inventory_hostname }}" when: - nova_developer_mode | bool