diff --git a/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml b/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml new file mode 100644 index 00000000000..0d0f00b8add --- /dev/null +++ b/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml @@ -0,0 +1,3 @@ +bugfixes: + - Fix rabbitmq_plugin idempotence due to information message in new version of rabbitmq + (https://github.com/ansible/ansible/pull/52166) diff --git a/lib/ansible/modules/messaging/rabbitmq_plugin.py b/lib/ansible/modules/messaging/rabbitmq_plugin.py index 48bf3d4fb14..a2cb7d4b149 100644 --- a/lib/ansible/modules/messaging/rabbitmq_plugin.py +++ b/lib/ansible/modules/messaging/rabbitmq_plugin.py @@ -141,6 +141,8 @@ def main(): if state == 'enabled': if not new_only: for plugin in enabled_plugins: + if " " in plugin: + continue if plugin not in names: rabbitmq_plugins.disable(plugin) disabled.append(plugin)