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

- name: join cluster
  shell: rabbitmqctl join_cluster rabbit@{{ haproxy_hosts.keys()[0] }}
  register: join_result
  until: join_result|success
  retries: 20
  delay: 3

- name: start rabbitmq app
  shell: rabbitmqctl start_app