mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 14:30:45 +08:00
add pre-play to setup the right group
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user