|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
apt: pkg=rabbitmq-server=$rabbitmq_version state=installed force=yes
|
|
|
|
|
|
|
|
|
|
- name: enable rabbitmq plugins
|
|
|
|
|
rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing state=enabled
|
|
|
|
|
rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing,rabbitmq_federation state=enabled
|
|
|
|
|
notify:
|
|
|
|
|
- restart rabbitmq
|
|
|
|
|
|
|
|
|
@ -31,6 +31,9 @@
|
|
|
|
|
- name: ensure vhost /test is present
|
|
|
|
|
rabbitmq_vhost: name=/test state=present
|
|
|
|
|
|
|
|
|
|
- name: set federation local-username
|
|
|
|
|
rabbitmq_parameter: component=federation name=local-username value='"user1"' state=present
|
|
|
|
|
|
|
|
|
|
handlers:
|
|
|
|
|
- name: restart rabbitmq
|
|
|
|
|
service: name=rabbitmq-server state=restarted
|
|
|
|
|