Browse Source

Pick the first tester, undercloud or tempest node from inventory

Change-Id: I26ec08ef20508feddb681718d91bd03a1ab3df24
changes/82/771782/7
Federico Ressi 8 months ago
parent
commit
ba4ba20480
  1. 10
      infrared_plugin/roles/tobiko-ir-init/tasks/main.yaml

10
infrared_plugin/roles/tobiko-ir-init/tasks/main.yaml

@ -36,16 +36,14 @@
loop: "{{ find_tobiko_roles.files | map(attribute='path') | list }}"
- name: "select test host from inventory"
- name: "select tester host from the inventory"
set_fact:
test_host: '{{ item }}'
when:
- test_host is not defined
- item in hostvars
loop:
- tester-0
- tester
- undercloud-0
- undercloud
- tempest
- '{{ groups.get("tester", []) | first | default("tester") }}'
- '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}'
- '{{ groups.get("tempest", []) | first | default("tempest") }}'
- primary
Loading…
Cancel
Save