Commit 972f5c13 by Carson Gee

Apply mirrored queue policy to all rabbitmq vhosts

parent cb1ead5b
......@@ -132,8 +132,10 @@
- maintenance
- name: make queues mirrored
shell: "/usr/sbin/rabbitmqctl set_policy HA '^(?!amq\\.).*' '{\"ha-mode\": \"all\"}'"
shell: >
/usr/sbin/rabbitmqctl -p {{ item }} set_policy HA "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'
when: RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1
with_items: RABBITMQ_VHOSTS
tags:
- ha
- maintenance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment