2012-02-28 03:48:45 +00:00
|
|
|
---
|
2012-03-02 03:20:45 +00:00
|
|
|
- hosts: '*'
|
2012-03-06 01:09:03 +00:00
|
|
|
vars:
|
|
|
|
a: 2
|
|
|
|
b: 3
|
|
|
|
c: 4
|
2012-02-28 03:48:45 +00:00
|
|
|
tasks:
|
|
|
|
- name: copy comand
|
|
|
|
action: copy src=/srv/a dest=/srv/b
|
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
- name: template step
|
|
|
|
action: template src=/srv/template.j2 dest=/srv/file.out
|
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
- name: execute bin false
|
|
|
|
comment: call something that will fail just to demo failure counts and such
|
|
|
|
action: command /bin/false
|
|
|
|
- name: execute bin true
|
|
|
|
comment: this will never be executed because previous will fail
|
|
|
|
action: command /bin/true
|
|
|
|
handlers:
|
|
|
|
- name: restart apache
|
|
|
|
action: service name=httpd state=restarted
|