Added preliminary support for --sudo to ansible, playbook support and further testing pending.
This commit is contained in:
parent
f8a51437f3
commit
2e060c537f
1 changed files with 1 additions and 3 deletions
4
service
4
service
|
@ -79,9 +79,7 @@ elif state == "restarted":
|
||||||
# run change commands if we need to
|
# run change commands if we need to
|
||||||
|
|
||||||
def _run(cmd):
|
def _run(cmd):
|
||||||
return subprocess.call(cmd,
|
return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
stderr=subprocess.PIPE, shell=True)
|
|
||||||
|
|
||||||
rc = 0
|
rc = 0
|
||||||
if changed:
|
if changed:
|
||||||
|
|
Loading…
Reference in a new issue