aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/debian.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/debian.yml')
-rw-r--r--tasks/debian.yml16
1 files changed, 6 insertions, 10 deletions
diff --git a/tasks/debian.yml b/tasks/debian.yml
index 563563a..4b38782 100644
--- a/tasks/debian.yml
+++ b/tasks/debian.yml
@@ -1,22 +1,18 @@
1--- 1---
2- name: Add the RabbitMQ public GPG key to the apt repo 2- name: debian | adding RabbitMQ public GPG key to the apt repo
3 apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present 3 apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present
4 4
5- name: Add RabbitMQ to the sources list 5- name: debian | adding RabbitMQ repo
6 apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present 6 apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present
7 7
8- name: Install RabbitMQ server 8- name: debian | installing RabbitMQ server
9 apt: name={{ item }} update_cache=no force=yes state=installed 9 apt: name={{ item }} state=present
10 with_items: 10 with_items:
11 - rabbitmq-server 11 - rabbitmq-server
12 12
13- name: Enable the RabbitMQ Management Console 13- name: debian | enabling the RabbitMQ Management Console
14 rabbitmq_plugin: names=rabbitmq_management state=enabled 14 rabbitmq_plugin: names=rabbitmq_management state=enabled
15 notify: restart rabbitmq-server 15 notify: restart rabbitmq-server
16 16
17- name: Ensure that the RabbitMQ service is running 17- name: debian | ensuring that the RabbitMQ service is running
18 service: name=rabbitmq-server state=started enabled=yes 18 service: name=rabbitmq-server state=started enabled=yes
19
20- name: check | checking to see if already clustered
21 stat: path=/etc/rabbitmq/clustered
22 register: clustered