fixed joining of cluster
This commit is contained in:
parent
588a32b450
commit
dc8a75f6cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user