2012-02-24 01:02:24 -05:00
|
|
|
- pattern: '*'
|
2012-02-25 19:56:06 -05:00
|
|
|
hosts: '/etc/ansible/hosts'
|
2012-02-23 23:54:16 -05:00
|
|
|
tasks:
|
2012-02-24 03:25:09 -05:00
|
|
|
- do:
|
|
|
|
- configure template & module variables
|
2012-02-05 13:05:09 -05:00
|
|
|
- setup a=2 b=3 c=4
|
2012-02-05 12:52:07 -05:00
|
|
|
- do:
|
|
|
|
- copy a file
|
2012-02-05 13:05:09 -05:00
|
|
|
- copy /srv/a /srv/b
|
2012-02-25 14:42:41 -05:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-24 03:45:36 -05:00
|
|
|
- do:
|
|
|
|
- template from local file template.j2 to remote location /srv/file.out
|
2012-02-05 13:05:09 -05:00
|
|
|
- template /srv/template.j2 /srv/file.out
|
2012-02-25 14:42:41 -05:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
- quack like a duck
|
2012-02-25 15:21:11 -05:00
|
|
|
- do:
|
|
|
|
- something that will fail
|
|
|
|
- command /bin/false
|
2012-02-25 14:42:41 -05:00
|
|
|
handlers:
|
2012-02-23 23:54:16 -05:00
|
|
|
- do:
|
2012-02-24 01:02:24 -05:00
|
|
|
- restart apache
|
2012-02-25 20:27:11 -05:00
|
|
|
- service name=httpd ensure=restarted
|
2012-02-23 23:54:16 -05:00
|
|
|
- do:
|
2012-02-25 14:42:41 -05:00
|
|
|
- quack like a duck
|
|
|
|
- command /bin/true
|