parent
10117271e9
commit
d7dda79cb4
7 changed files with 41 additions and 4 deletions
@ -1,6 +1,17 @@ |
|||||||
--- |
--- |
||||||
|
|
||||||
|
- name: Remove unused config |
||||||
|
file: path=/etc/rabbitmq/rabbitmq.config state=absent |
||||||
|
when: rabbitmq_conf == 'rabbit.conf' |
||||||
|
notify: restart rabbitmq-server |
||||||
|
tags: rabbit |
||||||
|
|
||||||
- name: Deploy configuration |
- name: Deploy configuration |
||||||
template: src=rabbitmq.config.j2 dest=/etc/rabbitmq/rabbitmq.config |
template: src={{ rabbitmq_conf }}.j2 dest=/etc/rabbitmq/{{ rabbitmq_conf }} |
||||||
|
notify: restart rabbitmq-server |
||||||
|
tags: rabbitmq |
||||||
|
|
||||||
|
- name: Deploy plugins to enable |
||||||
|
template: src=enabled_plugins.j2 dest=/etc/rabbitmq/enabled_plugins |
||||||
notify: restart rabbitmq-server |
notify: restart rabbitmq-server |
||||||
tags: rabbitmq |
tags: rabbitmq |
||||||
|
@ -0,0 +1,5 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
# On EL8 and newer, rabbitmq config uses the new format |
||||||
|
- set_fact: rabbitmq_conf={{ ansible_distribution_major_version is version('8','>=') | ternary('rabbitmq.conf','rabbitmq.config') }} |
||||||
|
tags: rabbitmq |
@ -0,0 +1 @@ |
|||||||
|
[{{ rabbitmq_plugins | join(',') }}]. |
@ -0,0 +1,4 @@ |
|||||||
|
listeners.tcp.default = {{ rabbitmq_port }} |
||||||
|
loopback_users.guest = {{ rabbitmq_guest_from_anywhere | ternary('false','true') }} |
||||||
|
management.tcp.port = {{ rabbitmq_web_port }} |
||||||
|
management.tcp.ip = 0.0.0.0 |
Loading…
Reference in new issue