aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/main.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/main.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/main.yml')
-rw-r--r--tasks/main.yml24
1 files changed, 2 insertions, 22 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index e74c1e5..3752d78 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,26 +1,6 @@
1---
2# tasks file for ansible-rabbitmq 1# tasks file for ansible-rabbitmq
3- name: Add the RabbitMQ public GPG key to the apt repo 2- include: debian.yml
4 apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present 3 when: ansible_os_family == "Debian"
5
6- name: Add RabbitMQ to the sources list
7 apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present
8
9- name: Install RabbitMQ server
10 apt: name={{ item }} update_cache=no force=yes state=installed
11 with_items:
12 - rabbitmq-server
13
14- name: Enable the RabbitMQ Management Console
15 rabbitmq_plugin: names=rabbitmq_management state=enabled
16 notify: restart rabbitmq-server
17
18- name: Ensure that the RabbitMQ service is running
19 service: name=rabbitmq-server state=started enabled=yes
20
21- name: check | checking to see if already clustered
22 stat: path=/etc/rabbitmq/clustered
23 register: clustered
24 4
25- include: rabbitmq_clustering.yml 5- include: rabbitmq_clustering.yml
26 when: enable_rabbitmq_clustering and (clustered.stat.exists != True) 6 when: enable_rabbitmq_clustering and (clustered.stat.exists != True)