mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
A basic service module with 'ensure' idempotence semantics. Playbook updated to use service
module vs command module for restarting. May be some bugs and requires the service to implement 'status' -- and probably some better error handling (i.e. return JSON with "failed" element if failed). Improvements welcome.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
handlers:
|
||||
- do:
|
||||
- restart apache
|
||||
- command /sbin/service httpd restart
|
||||
- service name=httpd ensure=restarted
|
||||
- do:
|
||||
- quack like a duck
|
||||
- command /bin/true
|
||||
|
||||
Reference in New Issue
Block a user