test playbook for included playlets/playbooks
This commit is contained in:
parent
83c18a42fa
commit
9d1045491e
1 changed files with 21 additions and 0 deletions
21
playbooks/playlet-test.yml
Normal file
21
playbooks/playlet-test.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
# requires --extra-vars="target='host1;host2;group etc'
|
||||
|
||||
- name: run a playley
|
||||
hosts: $target
|
||||
user: root
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- $private/vars.yml
|
||||
|
||||
tasks:
|
||||
- name: populate my target group
|
||||
action: add_host groupname=parent_group hostname=$item
|
||||
with_items: $hosts
|
||||
|
||||
- include: $basedir/playlets/test/book.yml
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue