Skip to content

Commit

Permalink
Add default host group
Browse files Browse the repository at this point in the history
First check if undercloud group is availabile. If not, default to tester.

Change-Id: I560319ae023c15fcad19d9467864292da8cee248
  • Loading branch information
abregman committed May 24, 2020
1 parent 18aca60 commit 8e8e82c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
tasks:
- name: Add chosen node to tester group
add_host:
name: "{{ install.tester.node|default(groups.tester|first) }}"
name: "{{ install.tester.node|default((groups.get('undercloud', {})|first))|default(groups.tester|first) }}"
groups: "tester"
- include_role:
name: inventory-update
Expand Down
1 change: 0 additions & 1 deletion plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ subparsers:
tester-node:
type: Value
help: The name of the node from where to run the patching
default: 'undercloud-0'

0 comments on commit 8e8e82c

Please sign in to comment.