aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/debian.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-08-06 20:25:37 -0400
committerLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-08-06 20:25:37 -0400
commita06e4a79a5331952ad31c737fbd3d7d82eaa6eb5 (patch)
treeec4f24fa79fa747ca323a718b18421217fe1fde1 /tasks/debian.yml
parenta97acdde3506c5b905e11587c3370dd2bd70af0e (diff)
downloadansible-rabbitmq-a06e4a79a5331952ad31c737fbd3d7d82eaa6eb5.tar.gz
ansible-rabbitmq-a06e4a79a5331952ad31c737fbd3d7d82eaa6eb5.tar.zst
ansible-rabbitmq-a06e4a79a5331952ad31c737fbd3d7d82eaa6eb5.zip
updated tasks based on Debian
Diffstat (limited to 'tasks/debian.yml')
-rw-r--r--tasks/debian.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/debian.yml b/tasks/debian.yml
new file mode 100644
index 0000000..563563a
--- /dev/null
+++ b/tasks/debian.yml
@@ -0,0 +1,22 @@
1---
2- name: Add the RabbitMQ public GPG key to the apt repo
3 apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present
4
5- name: Add RabbitMQ to the sources list
6 apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present
7
8- name: Install RabbitMQ server
9 apt: name={{ item }} update_cache=no force=yes state=installed
10 with_items:
11 - rabbitmq-server
12
13- name: Enable the RabbitMQ Management Console
14 rabbitmq_plugin: names=rabbitmq_management state=enabled
15 notify: restart rabbitmq-server
16
17- name: Ensure that the RabbitMQ service is running
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