Pick the first tester, undercloud or tempest node from inventory
Change-Id: I26ec08ef20508feddb681718d91bd03a1ab3df24
This commit is contained in:
parent
70671a1269
commit
ba4ba20480
|
@ -36,16 +36,14 @@
|
||||||
loop: "{{ find_tobiko_roles.files | map(attribute='path') | list }}"
|
loop: "{{ find_tobiko_roles.files | map(attribute='path') | list }}"
|
||||||
|
|
||||||
|
|
||||||
- name: "select test host from inventory"
|
- name: "select tester host from the inventory"
|
||||||
set_fact:
|
set_fact:
|
||||||
test_host: '{{ item }}'
|
test_host: '{{ item }}'
|
||||||
when:
|
when:
|
||||||
- test_host is not defined
|
- test_host is not defined
|
||||||
- item in hostvars
|
- item in hostvars
|
||||||
loop:
|
loop:
|
||||||
- tester-0
|
- '{{ groups.get("tester", []) | first | default("tester") }}'
|
||||||
- tester
|
- '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}'
|
||||||
- undercloud-0
|
- '{{ groups.get("tempest", []) | first | default("tempest") }}'
|
||||||
- undercloud
|
|
||||||
- tempest
|
|
||||||
- primary
|
- primary
|
||||||
|
|
Loading…
Reference in New Issue