blob: 563563abf8ed1df41ca8aba4fc1319e3ec6c5513 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: Add the RabbitMQ public GPG key to the apt repo
apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present
- name: Add RabbitMQ to the sources list
apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present
- name: Install RabbitMQ server
apt: name={{ item }} update_cache=no force=yes state=installed
with_items:
- rabbitmq-server
- name: Enable the RabbitMQ Management Console
rabbitmq_plugin: names=rabbitmq_management state=enabled
notify: restart rabbitmq-server
- name: Ensure that the RabbitMQ service is running
service: name=rabbitmq-server state=started enabled=yes
- name: check | checking to see if already clustered
stat: path=/etc/rabbitmq/clustered
register: clustered
|