diff --git a/changelogs/fragments/syslogger-disable-check-mode.yaml b/changelogs/fragments/syslogger-disable-check-mode.yaml new file mode 100644 index 00000000000..11eacfca556 --- /dev/null +++ b/changelogs/fragments/syslogger-disable-check-mode.yaml @@ -0,0 +1,2 @@ +bugfixes: + - syslogger callback plugin - remove check mode support since it did nothing anyway diff --git a/lib/ansible/modules/notification/syslogger.py b/lib/ansible/modules/notification/syslogger.py index 6f944cf8857..59de03c4145 100644 --- a/lib/ansible/modules/notification/syslogger.py +++ b/lib/ansible/modules/notification/syslogger.py @@ -130,7 +130,6 @@ def run_module(): module = AnsibleModule( argument_spec=module_args, - supports_check_mode=True ) result = dict( @@ -141,10 +140,6 @@ def run_module(): msg=module.params['msg'] ) - # basically, do nothing. - if module.check_mode: - return result - # do the logging try: if module.params['log_pid']: