diff --git a/tasks/rabbitmq_post_install.yml b/tasks/rabbitmq_post_install.yml index b1ef25ee..3331be66 100644 --- a/tasks/rabbitmq_post_install.yml +++ b/tasks/rabbitmq_post_install.yml @@ -64,7 +64,7 @@ # don't trigger ANSIBLE0016 - skip_ansible_lint -- name: Configure rabbitmq plugins (ansible 2.10.x with rabbitmq collection) +- name: Configure rabbitmq plugins community.rabbitmq.rabbitmq_plugin: names: "{{ item.name }}" state: "{{ item.state }}" @@ -73,17 +73,6 @@ register: rabbitmq_plugin tags: - rabbitmq-config - when: ansible_version.full is version('2.10', '>') - -- name: Configure rabbitmq plugins (ansible 2.9.x) - community.rabbitmq.rabbitmq_plugin: - names: "{{ item.name }}" - state: "{{ item.state }}" - with_items: "{{ rabbitmq_plugins }}" - register: rabbitmq_plugin - tags: - - rabbitmq-config - when: ansible_version.full is version('2.10', '<') - include_tasks: rabbitmq_restart.yml when: rabbit_config is changed or rabbitmq_plugin is changed or cookie_set is changed or rabbitmq_upgrade | bool