1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

puppet: ensure puppet is in live mode per default

puppet may be configured to operate in `--noop` mode per default.

That is why we must pass a `--no-noop` to make sure, changes are going to be applied.
This commit is contained in:
Rene Moser 2015-06-06 09:13:11 +02:00 committed by Matt Clay
parent 74cc1bb624
commit 8f9c3efb1d

View file

@ -156,10 +156,14 @@ def main():
cmd += " --show-diff"
if module.check_mode:
cmd += " --noop"
else:
cmd += " --no-noop"
else:
cmd = "%s apply --detailed-exitcodes " % base_cmd
if module.check_mode:
cmd += "--noop "
else:
cmd += "--no-noop "
cmd += pipes.quote(p['manifest'])
rc, stdout, stderr = module.run_command(cmd)