remove the old playlets detritus and explain that this is for ansible 1.2 and uponly
This commit is contained in:
parent
09abb18832
commit
9d0051063f
4 changed files with 1 additions and 51 deletions
36
roles/README
36
roles/README
|
@ -1,36 +1,2 @@
|
||||||
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:
|
Space for our ansible roles - ansible 1.2 and above only
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
- name: test playlet
|
|
||||||
hosts: parent_group
|
|
||||||
tags:
|
|
||||||
- playlet_tag_name
|
|
||||||
vars_files:
|
|
||||||
- vars/vars.yml
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: my task 1
|
|
||||||
action: copy src=files/${myfile} dest=/tmp/${myfile}.txt
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
this is foo
|
|
||||||
it should end up in /tmp
|
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
myfile: foo
|
|
Loading…
Add table
Add a link
Reference in a new issue