Added preliminary support for --sudo to ansible, playbook support and further testing pending.

This commit is contained in:
Michael DeHaan 2012-03-29 01:36:29 -04:00
parent f8a51437f3
commit 2e060c537f

View file

@ -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: