Browse Source

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: I9ec04c1ceb1036fcf2b830a372d6fb927b3040ac
Mohammed Naser 2 months ago
parent
commit
4435615a43
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tasks/designate_install_source.yml

+ 1
- 1
tasks/designate_install_source.yml View File

@@ -30,7 +30,7 @@
30 30
 
31 31
 - name: Ensure remote wheel building is disabled in developer mode
32 32
   set_fact:
33
-    venv_build_host: "{{ ansible_hostname }}"
33
+    venv_build_host: "{{ inventory_hostname }}"
34 34
   when:
35 35
     - designate_developer_mode | bool
36 36
 

Loading…
Cancel
Save