diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2015-11-13 02:56:48 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2015-11-13 02:56:48 -0500 |
commit | 93a297c59940c7cfe88afe0f9110af5b4be521e3 (patch) | |
tree | 1d3f3904ecb83138f557f9a3ed40e72e032a3bfc /tasks/debian.yml | |
parent | 93f90e27f24275f9ccca908a2d77543dfa9bb379 (diff) | |
download | ansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.tar.gz ansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.tar.zst ansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.zip |
updated tasks, fixed broken HA configuration tasks
Diffstat (limited to 'tasks/debian.yml')
-rw-r--r-- | tasks/debian.yml | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/tasks/debian.yml b/tasks/debian.yml index 4b38782..12ddd3b 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml | |||
@@ -1,18 +1,29 @@ | |||
1 | --- | 1 | --- |
2 | - name: debian | adding 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: |
4 | url: "{{ rabbitmq_debian_repo_key }}" | ||
5 | state: present | ||
4 | 6 | ||
5 | - name: debian | adding RabbitMQ repo | 7 | - name: debian | adding RabbitMQ repo |
6 | apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present | 8 | apt_repository: |
9 | repo: "{{ rabbitmq_debian_repo }}" | ||
10 | state: present | ||
7 | 11 | ||
8 | - name: debian | installing RabbitMQ server | 12 | - name: debian | installing RabbitMQ server |
9 | apt: name={{ item }} state=present | 13 | apt: |
14 | name: "{{ item }}" | ||
15 | state: present | ||
10 | with_items: | 16 | with_items: |
11 | - rabbitmq-server | 17 | - rabbitmq-server |
12 | 18 | ||
13 | - name: debian | enabling the RabbitMQ Management Console | 19 | - name: debian | enabling the RabbitMQ Management Console |
14 | rabbitmq_plugin: names=rabbitmq_management state=enabled | 20 | rabbitmq_plugin: |
21 | names: rabbitmq_management | ||
22 | state: enabled | ||
15 | notify: restart rabbitmq-server | 23 | notify: restart rabbitmq-server |
16 | 24 | ||
17 | - name: debian | ensuring that the RabbitMQ service is running | 25 | - name: debian | ensuring that the RabbitMQ service is running |
18 | service: name=rabbitmq-server state=started enabled=yes | 26 | service: |
27 | name: rabbitmq-server | ||
28 | state: started | ||
29 | enabled: yes | ||