Fix infrared plugin default test_host execution
test_host fact got from localhost has to be get from hostvars when outside from a play because no host is being considered for it. Change-Id: I1902837ae10c8c5fb3010923ddafc9f03712d05c
This commit is contained in:
parent
4062f279b4
commit
32300a380a
|
@ -9,9 +9,10 @@
|
|||
- test_host is not defined
|
||||
- item in hostvars
|
||||
loop:
|
||||
- "undercloud-0"
|
||||
- "tempest"
|
||||
- "primary"
|
||||
- undercloud-0
|
||||
- tempest
|
||||
- tester
|
||||
- primary
|
||||
|
||||
- name: "ensure '{{ tobiko_src_dir }}' directory exists"
|
||||
file:
|
||||
|
@ -42,7 +43,8 @@
|
|||
state: link
|
||||
|
||||
|
||||
- hosts: '{{ test_host | default("localhost") }}'
|
||||
- hosts:
|
||||
'{{ test_host | default(hostvars.localhost.test_host) | default("localhost") }}'
|
||||
gather_facts: yes
|
||||
tasks:
|
||||
- include_role: name=tobiko-all
|
||||
|
|
Loading…
Reference in New Issue