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:
Michael DeHaan 2012-02-25 20:27:11 -05:00
parent 3c3111c1f3
commit d308254eae
3 changed files with 87 additions and 2 deletions

View file

@ -21,7 +21,6 @@
import ansible.runner
import ansible.constants as C
import json
import yaml
import shlex