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 0000000000..0d0f00b8ad --- /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/rabbitmq_plugin.py b/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py index 79437183e0..301bbfe282 100644 --- a/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py +++ b/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py @@ -154,6 +154,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)