This commit is contained in:
nazunalika 2021-01-23 03:35:42 -07:00
parent b9f20e7991
commit f67b187175

View File

@ -21,6 +21,8 @@
loop:
- rabbitmq.conf
- rabbitmq-env.conf
notify:
- restart_rabbitmq
- name: Deploy erlang cookie
copy:
@ -52,9 +54,17 @@
# We are doing it the command line way
- name: Enable RabbitMQ Plugins
shell: "set -o pipefail && rabbitmq-plugins enable {{ rabbitmq_plugins | join(' ') }}"
command: "rabbitmq-plugins enable {{ rabbitmq_plugins | join(' ') }}"
changed_when: "1 != 1"
- name: Ensure file ownership for plugins
file:
path: /etc/rabbitmq/enabled_plugins
owner: rabbitmq
group: rabbitmq
mode: '0644'
state: file
- name: Open applicable firewall rules
ansible.posix.firewalld:
port: "{{ item }}"