test playbook for included playlets/playbooks

This commit is contained in:
Seth Vidal 2013-03-15 22:27:27 +00:00
parent 83c18a42fa
commit 9d1045491e

View 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