2012-02-27 03:09:56 +01:00
|
|
|
---
|
2012-02-24 07:02:24 +01:00
|
|
|
- pattern: '*'
|
2012-02-27 01:55:26 +01:00
|
|
|
hosts: /etc/ansible/hosts
|
2012-02-24 05:54:16 +01:00
|
|
|
tasks:
|
2012-02-27 02:54:51 +01: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 20:42:41 +01:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-27 02:54:51 +01:00
|
|
|
- name: template step
|
|
|
|
action: template src=/srv/template.j2 dest=/srv/file.out
|
2012-02-25 20:42:41 +01:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-27 02:54:51 +01: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 20:42:41 +01:00
|
|
|
handlers:
|
2012-02-27 02:54:51 +01:00
|
|
|
- name: restart apache
|
2012-02-27 04:31:42 +01:00
|
|
|
action: service name=httpd state=restarted
|