Commit b0bd0a0f by Tim Bielawa

Making the nagios module NOOPpable

parent 6a12d640
...@@ -185,6 +185,9 @@ def main(): ...@@ -185,6 +185,9 @@ def main():
################################################################## ##################################################################
ansible_nagios = Nagios(module, **module.params) ansible_nagios = Nagios(module, **module.params)
if self.check_mode:
module.exit_json(changed=True)
else:
ansible_nagios.act() ansible_nagios.act()
################################################################## ##################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment