36 lines
No EOL
689 B
Text
36 lines
No EOL
689 B
Text
playlets are self-contained playbooks which are never intended to be
|
|
directly executed. They are only to be used as an 'include' from our other
|
|
playbooks.
|
|
|
|
All of these playbooks must have:
|
|
|
|
|
|
hosts: $parent_group
|
|
|
|
the general structure is:
|
|
|
|
playlet_name/
|
|
vars/vars.yml
|
|
files/myfile.conf
|
|
myfile2.conf.j2
|
|
handlers/handlers.yml
|
|
book.yml
|
|
|
|
|
|
|
|
|
|
template for book.yml
|
|
---
|
|
- name: give the play let a name
|
|
hosts: $parent_group
|
|
tags:
|
|
- playlet_tag_name
|
|
vars_files:
|
|
- vars/somefile.yml
|
|
|
|
tasks:
|
|
- name: my task
|
|
action: stuff which I do
|
|
|
|
|
|
|