ansible/examples/playbook.yml
Michael DeHaan 7730341d24 We don't have modules that list when things change just yet. I plan to handle
this by having a changed=True/False in the JSON for these modules.  Added a note
so folks won't think we can only execute shell :)
2012-02-23 23:54:16 -05:00

16 lines
348 B
YAML

- pattern: '*.prod.example.com'
tasks:
- do:
- update apache (note: service module TBD)
- command
- [/usr/bin/yum, update, apache]
onchange:
- do:
- restart apache (note: service module TBD)
- command
- [/sbin/service, apache, restart]
- do:
- run bin false
- command
- [/bin/false]