aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-07-29 18:38:22 -0400
committerLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-07-29 18:38:22 -0400
commiteb299d9b8716d8c5b0bdede17e29ada1f623fe43 (patch)
tree9a557f66b701f072d09fd4cdfa9404e91bf41c1a /tasks/main.yml
downloadansible-rabbitmq-eb299d9b8716d8c5b0bdede17e29ada1f623fe43.tar.gz
ansible-rabbitmq-eb299d9b8716d8c5b0bdede17e29ada1f623fe43.tar.zst
ansible-rabbitmq-eb299d9b8716d8c5b0bdede17e29ada1f623fe43.zip
first commit
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..e74c1e5
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,29 @@
1---
2# tasks file for ansible-rabbitmq
3- name: Add the RabbitMQ public GPG key to the apt repo
4 apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present
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
25- include: rabbitmq_clustering.yml
26 when: enable_rabbitmq_clustering and (clustered.stat.exists != True)
27
28- include: rabbitmq_ha_config.yml
29 when: config_rabbitmq_ha and enable_rabbitmq_clustering