fixed joining of cluster

This commit is contained in:
Egon Rijpkema 2017-07-12 11:40:37 +02:00
parent 588a32b450
commit dc8a75f6cb
1 changed files with 7 additions and 6 deletions

View File

@ -16,9 +16,10 @@
name: rabbitmq.service
state: started
#- name: setup the cluster
# command: "docker exec -i rabbitmq.service {{ item }}"
# with_items:
# - rabbitmqctl stop_app
# - "rabbitmqctl join_cluster rabbit_openstack01@{{ hostname_node0 }}"
# - rabbitmqctl start_app
- name: setup the cluster
command: "docker exec -i rabbitmq.service {{ item }}"
with_items:
- rabbitmqctl stop_app
- "rabbitmqctl join_cluster rabbit_{{ hostname_node0 }}@{{ hostname_node0 }}"
- rabbitmqctl start_app
when: ansible_nodename != hostname_node0