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: loop:
- rabbitmq.conf - rabbitmq.conf
- rabbitmq-env.conf - rabbitmq-env.conf
notify:
- restart_rabbitmq
- name: Deploy erlang cookie - name: Deploy erlang cookie
copy: copy:
@ -52,9 +54,17 @@
# We are doing it the command line way # We are doing it the command line way
- name: Enable RabbitMQ Plugins - 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" 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 - name: Open applicable firewall rules
ansible.posix.firewalld: ansible.posix.firewalld:
port: "{{ item }}" port: "{{ item }}"