diff --git a/notification/irc b/notification/irc index 56340d9a162..84a0a71c009 100644 --- a/notification/irc +++ b/notification/irc @@ -138,8 +138,7 @@ def main(): except Exception, e: module.fail_json(msg="unable to send to IRC: %s" % e) - changed = True - module.exit_json(changed=changed, channel=channel, nick=nick, + module.exit_json(changed=False, channel=channel, nick=nick, msg=msg) # this is magic, see lib/ansible/module_common.py diff --git a/notification/mqtt b/notification/mqtt index 7ac687a2fe3..e30ed4c59c6 100644 --- a/notification/mqtt +++ b/notification/mqtt @@ -173,7 +173,7 @@ def main(): except Exception, e: module.fail_json(msg="unable to publish to MQTT broker %s" % (e)) - module.exit_json(changed=True, topic=topic) + module.exit_json(changed=False, topic=topic) # this is magic, see lib/ansible/module_common.py #<>