2017-05-16 15:52:22 +02:00
|
|
|
# Install a docker based rabbitMQ.
|
|
|
|
---
|
|
|
|
- name: install service file.
|
|
|
|
template:
|
|
|
|
src: files/rabbitmq.service
|
|
|
|
dest: /etc/systemd/system/rabbitmq.service
|
|
|
|
mode: 644
|
|
|
|
owner: root
|
|
|
|
group: root
|
2017-07-07 16:14:38 +02:00
|
|
|
|
2017-05-16 15:52:22 +02:00
|
|
|
- name: install service file
|
|
|
|
command: systemctl daemon-reload
|
2017-07-07 16:14:38 +02:00
|
|
|
|
2017-05-16 15:52:22 +02:00
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: rabbitmq.service
|
|
|
|
state: started
|
2017-07-07 16:14:38 +02:00
|
|
|
|
|
|
|
#- 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
|