add pre-play to setup the right group
This commit is contained in:
parent
bc1bfc1eff
commit
a031a68f8b
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,14 @@
|
|||
- name: add to group
|
||||
hosts: lockbox01.phx2.fedoraproject.org
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
tasks:
|
||||
- name: add it to the special group
|
||||
local_action: add_host hostname=$target groupname=tmp_just_created
|
||||
|
||||
- name: provision instance
|
||||
hosts: $target
|
||||
hosts: tmp_just_created
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue