diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-12-03 17:51:25 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-12-03 17:51:25 -0500 |
commit | 109c6b750751d1c5cd216ad2f09258cf512c4c9e (patch) | |
tree | 0b276b62a25937dd5edb6d905952cf107b7c88ca /Vagrant/roles/ansible-rabbitmq/tasks/debian.yml | |
parent | 8f8673fb8dfa2bd4fa2694cbfdcb6eed54e502de (diff) | |
download | ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.gz ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.zst ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.zip |
Addressed issue #6
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
Diffstat (limited to 'Vagrant/roles/ansible-rabbitmq/tasks/debian.yml')
-rw-r--r-- | Vagrant/roles/ansible-rabbitmq/tasks/debian.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Vagrant/roles/ansible-rabbitmq/tasks/debian.yml b/Vagrant/roles/ansible-rabbitmq/tasks/debian.yml new file mode 100644 index 0000000..a031ead --- /dev/null +++ b/Vagrant/roles/ansible-rabbitmq/tasks/debian.yml | |||
@@ -0,0 +1,35 @@ | |||
1 | --- | ||
2 | - name: debian | adding RabbitMQ public GPG key to the apt repo | ||
3 | apt_key: | ||
4 | url: "{{ rabbitmq_debian_repo_key }}" | ||
5 | state: present | ||
6 | |||
7 | - name: debian | adding RabbitMQ repo | ||
8 | apt_repository: | ||
9 | repo: "{{ rabbitmq_debian_repo }}" | ||
10 | state: present | ||
11 | register: "rabbitmq_repo_added" | ||
12 | |||
13 | - name: debian | updating apt cache | ||
14 | apt: | ||
15 | update_cache: yes | ||
16 | when: rabbitmq_repo_added.changed | ||
17 | |||
18 | - name: debian | installing RabbitMQ server | ||
19 | apt: | ||
20 | name: "{{ item }}" | ||
21 | state: present | ||
22 | with_items: | ||
23 | - rabbitmq-server | ||
24 | |||
25 | - name: debian | enabling the RabbitMQ Management Console | ||
26 | rabbitmq_plugin: | ||
27 | names: rabbitmq_management | ||
28 | state: enabled | ||
29 | notify: restart rabbitmq-server | ||
30 | |||
31 | - name: debian | ensuring that the RabbitMQ service is running | ||
32 | service: | ||
33 | name: rabbitmq-server | ||
34 | state: started | ||
35 | enabled: yes | ||