add pre-play to setup the right group

This commit is contained in:
Seth Vidal 2013-04-25 16:42:07 +00:00
parent bc1bfc1eff
commit a031a68f8b

View file

@ -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