mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07: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:
parent
3c3111c1f3
commit
d308254eae
3 changed files with 87 additions and 2 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
import ansible.runner
|
||||
import ansible.constants as C
|
||||
import json
|
||||
import yaml
|
||||
import shlex
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue