mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Added preliminary support for --sudo to ansible, playbook support and further testing pending.
This commit is contained in:
@@ -79,9 +79,7 @@ elif state == "restarted":
|
||||
# run change commands if we need to
|
||||
|
||||
def _run(cmd):
|
||||
return subprocess.call(cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE, shell=True)
|
||||
return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
|
||||
rc = 0
|
||||
if changed:
|
||||
|
||||
Reference in New Issue
Block a user