Browse Source

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
changes/10/722210/2
Federico Ressi 1 year ago
parent
commit
32300a380a
  1. 10
      infrared_plugin/infrared.yaml

10
infrared_plugin/infrared.yaml

@ -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…
Cancel
Save