2012-02-24 07:02:24 +01:00
|
|
|
- pattern: '*'
|
2012-02-24 05:54:16 +01:00
|
|
|
tasks:
|
2012-02-24 09:25:09 +01:00
|
|
|
- do:
|
|
|
|
- configure template & module variables
|
2012-02-05 18:52:07 +01:00
|
|
|
- [ setup, [ "a=2", "b=3", "c=4" ] ]
|
|
|
|
- do:
|
|
|
|
- copy a file
|
|
|
|
- [ copy, [ "/srv/a", "/srv/b" ] ]
|
2012-02-24 09:45:36 +01:00
|
|
|
- do:
|
|
|
|
- template from local file template.j2 to remote location /srv/file.out
|
2012-02-05 18:52:07 +01:00
|
|
|
- [ template, [ '/srv/template.j2', '/srv/file.out' ] ]
|
2012-02-24 05:54:16 +01:00
|
|
|
- do:
|
2012-02-24 07:02:24 +01:00
|
|
|
- update apache
|
2012-02-05 18:52:07 +01:00
|
|
|
- [ command, [/usr/bin/yum, update, apache] ]
|
2012-02-24 05:54:16 +01:00
|
|
|
onchange:
|
|
|
|
- do:
|
2012-02-24 07:02:24 +01:00
|
|
|
- restart apache
|
2012-02-05 18:52:07 +01:00
|
|
|
- [ command, [/sbin/service, apache, restart] ]
|
2012-02-24 05:54:16 +01:00
|
|
|
- do:
|
|
|
|
- run bin false
|
2012-02-05 18:52:07 +01:00
|
|
|
- [ command, [/bin/false] ]
|
2012-02-24 05:54:16 +01:00
|
|
|
|