mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
7730341d24
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 :)
16 lines
348 B
YAML
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]
|
|
|