mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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 :)
This commit is contained in:
16
examples/playbook.yml
Normal file
16
examples/playbook.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
- 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]
|
||||||
|
|
||||||
Reference in New Issue
Block a user