fixed joining of cluster

This commit is contained in:
Egon Rijpkema 2017-07-12 11:40:37 +02:00
parent 588a32b450
commit dc8a75f6cb

View File

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