aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/mq/tasks/rabbitmq_cluster.yml
blob: 8b0ce9a932a0783246f3b0f113802560e42fe603 (plain)
1
2
3
4
5
6
7
8
9
---
- name: stop rabbitmq app
  shell: rabbitmqctl stop_app; sleep 3

- name: join  cluster
  command: rabbitmqctl join_cluster rabbit@{{ haproxy_hosts.keys()[0] }}

- name: start rabbitmq app
  command: rabbitmqctl start_app