diff --git a/library/notification/irc b/library/notification/irc index 56340d9a16..84a0a71c00 100644 --- a/library/notification/irc +++ b/library/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/library/notification/mqtt b/library/notification/mqtt index 7ac687a2fe..e30ed4c59c 100644 --- a/library/notification/mqtt +++ b/library/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 #<>