2012-02-26 21:09:56 -05:00
|
|
|
---
|
2012-02-24 01:02:24 -05:00
|
|
|
- pattern: '*'
|
2012-02-26 19:55:26 -05:00
|
|
|
hosts: /etc/ansible/hosts
|
2012-02-23 23:54:16 -05:00
|
|
|
tasks:
|
2012-02-26 20:54:51 -05:00
|
|
|
- name: config step
|
|
|
|
action: setup a=2 b=3 c=4
|
|
|
|
- name: copy comand
|
|
|
|
action: copy src=/srv/a dest=/srv/b
|
2012-02-25 14:42:41 -05:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-26 20:54:51 -05:00
|
|
|
- name: template step
|
|
|
|
action: template src=/srv/template.j2 dest=/srv/file.out
|
2012-02-25 14:42:41 -05:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-26 20:54:51 -05:00
|
|
|
- name: execute bin false
|
|
|
|
comment: call something that will fail just to demo failure counts and such
|
|
|
|
action: command /bin/false
|
2012-02-25 14:42:41 -05:00
|
|
|
handlers:
|
2012-02-26 20:54:51 -05:00
|
|
|
- name: restart apache
|
2012-02-26 22:31:42 -05:00
|
|
|
action: service name=httpd state=restarted
|