2012-02-24 06:02:24 +00:00
|
|
|
- pattern: '*'
|
2012-02-24 04:54:16 +00:00
|
|
|
tasks:
|
2012-02-24 08:25:09 +00:00
|
|
|
- do:
|
|
|
|
- configure template & module variables
|
2012-02-05 18:05:09 +00:00
|
|
|
- setup a=2 b=3 c=4
|
2012-02-05 17:52:07 +00:00
|
|
|
- do:
|
|
|
|
- copy a file
|
2012-02-05 18:05:09 +00:00
|
|
|
- copy /srv/a /srv/b
|
2012-02-25 19:42:41 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-24 08:45:36 +00:00
|
|
|
- do:
|
|
|
|
- template from local file template.j2 to remote location /srv/file.out
|
2012-02-05 18:05:09 +00:00
|
|
|
- template /srv/template.j2 /srv/file.out
|
2012-02-25 19:42:41 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
- quack like a duck
|
|
|
|
handlers:
|
2012-02-24 04:54:16 +00:00
|
|
|
- do:
|
2012-02-24 06:02:24 +00:00
|
|
|
- restart apache
|
2012-02-25 19:42:41 +00:00
|
|
|
- command /sbin/service httpd restart
|
2012-02-24 04:54:16 +00:00
|
|
|
- do:
|
2012-02-25 19:42:41 +00:00
|
|
|
- quack like a duck
|
|
|
|
- command /bin/true
|