aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/redhat.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2017-05-20 21:19:34 -0400
committerLarry Smith Jr <mrlesmithjr@gmail.com>2017-05-20 21:19:34 -0400
commita67dde50f26e0f76d91f0744e8e8341dac95dae2 (patch)
tree2971e931788eddf51b9ec71ac063bfb951215d0c /tasks/redhat.yml
parentf36f2edd9429200fbd18eeecfbba4b5fe891f26d (diff)
downloadansible-rabbitmq-a67dde50f26e0f76d91f0744e8e8341dac95dae2.tar.gz
ansible-rabbitmq-a67dde50f26e0f76d91f0744e8e8341dac95dae2.tar.zst
ansible-rabbitmq-a67dde50f26e0f76d91f0744e8e8341dac95dae2.zip
Cleaned up code as part of issue #10enhancements/issues-9-10-11
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
Diffstat (limited to 'tasks/redhat.yml')
-rw-r--r--tasks/redhat.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/redhat.yml b/tasks/redhat.yml
index 484597d..afa714c 100644
--- a/tasks/redhat.yml
+++ b/tasks/redhat.yml
@@ -3,6 +3,7 @@
3 yum: 3 yum:
4 name: "{{ item }}" 4 name: "{{ item }}"
5 state: present 5 state: present
6 become: true
6 with_items: 7 with_items:
7 - epel-release 8 - epel-release
8 - wget 9 - wget
@@ -11,30 +12,36 @@
11 yum: 12 yum:
12 name: "erlang" 13 name: "erlang"
13 state: present 14 state: present
15 become: true
14 16
15- name: redhat | adding RabbitMQ public GPG key 17- name: redhat | adding RabbitMQ public GPG key
16 rpm_key: 18 rpm_key:
17 key: "{{ rabbitmq_redhat_repo_key }}" 19 key: "{{ rabbitmq_redhat_repo_key }}"
18 state: present 20 state: present
21 become: true
19 22
20- name: redhat | downloading RabbitMQ 23- name: redhat | downloading RabbitMQ
21 get_url: 24 get_url:
22 url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}" 25 url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}"
23 dest: "/opt/{{ rabbitmq_redhat_package }}" 26 dest: "/opt/{{ rabbitmq_redhat_package }}"
27 become: true
24 28
25- name: redhat | installing RabbitMQ 29- name: redhat | installing RabbitMQ
26 yum: 30 yum:
27 name: "/opt/{{ rabbitmq_redhat_package }}" 31 name: "/opt/{{ rabbitmq_redhat_package }}"
28 state: present 32 state: present
33 become: true
29 34
30- name: redhat | starting and enabling RabbitMQ service 35- name: redhat | starting and enabling RabbitMQ service
31 service: 36 service:
32 name: "rabbitmq-server" 37 name: "rabbitmq-server"
33 state: started 38 state: started
34 enabled: yes 39 enabled: yes
40 become: true
35 41
36- name: redhat | enabling the RabbitMQ Management Console 42- name: redhat | enabling the RabbitMQ Management Console
37 rabbitmq_plugin: 43 rabbitmq_plugin:
38 names: rabbitmq_management 44 names: rabbitmq_management
39 state: enabled 45 state: enabled
40 notify: restart rabbitmq-server 46 notify: restart rabbitmq-server
47 become: true