Adjust ansible_hostname to ansible_nodename
ansible vars are as follows: self.facts['hostname'] = platform.node().split('.')[0] self.facts['nodename'] = platform.node() We should use the "nodename" var instead of the hostname variable. Closes-Bug: #1667193 Change-Id: Id98016cfffd30d2adaec058c861771f9aefe27b3
This commit is contained in:
parent
7c9a64b2ed
commit
5950d99f46
@ -19,7 +19,7 @@
|
||||
register: nova_service_list
|
||||
retries: 10
|
||||
delay: 5
|
||||
until: "{{ ansible_hostname in (nova_service_list.stdout
|
||||
until: "{{ ansible_nodename in (nova_service_list.stdout
|
||||
| from_json
|
||||
| selectattr('Binary', 'equalto', 'nova-compute')
|
||||
| map(attribute='Host') | list) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user