rabbitmq/tasks/plugins.yaml
2023-02-08 01:38:33 +03:00

22 lines
601 B
YAML

---
- name: Install rabbitmq plugins
get_url:
url: "{{ item.url }}"
dest: "{{ rabbitmq_plugin_dir }}"
with_items: "{{ rabbitmq_plugins }}"
when: item.url is defined
- name: Disable rabbitmq plugins
rabbitmq_plugin:
names: "{{ rabbitmq_plugins_disabled | join(',') }}"
state: disabled
- name: Set enabled rabbitmq plugins
set_fact:
rabbitmq_plugins_enabled: "{{ rabbitmq_plugins_enabled + [ item.name | default(item) ] }}"
with_items: "{{ rabbitmq_plugins }}"
- name: Enable rabbitmq plugins
rabbitmq_plugin:
names: "{{ rabbitmq_plugins_enabled | join(',') }}"