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
|
- test_host is not defined
|
||||||
- item in hostvars
|
- item in hostvars
|
||||||
loop:
|
loop:
|
||||||
- "undercloud-0"
|
- undercloud-0
|
||||||
- "tempest"
|
- tempest
|
||||||
- "primary"
|
- tester
|
||||||
|
- primary
|
||||||
|
|
||||||
- name: "ensure '{{ tobiko_src_dir }}' directory exists"
|
- name: "ensure '{{ tobiko_src_dir }}' directory exists"
|
||||||
file:
|
file:
|
||||||
|
@ -42,7 +43,8 @@
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
|
|
||||||
- hosts: '{{ test_host | default("localhost") }}'
|
- hosts:
|
||||||
|
'{{ test_host | default(hostvars.localhost.test_host) | default("localhost") }}'
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- include_role: name=tobiko-all
|
- include_role: name=tobiko-all
|
||||||
|
|
Loading…
Reference in New Issue