aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/redhat.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/redhat.yml')
-rw-r--r--tasks/redhat.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/tasks/redhat.yml b/tasks/redhat.yml
new file mode 100644
index 0000000..bf6f1e1
--- /dev/null
+++ b/tasks/redhat.yml
@@ -0,0 +1,43 @@
1---
2- name: redhat | installing pre-reqs
3 yum:
4 name: "{{ item }}"
5 state: present
6 with_items:
7 - dnf
8 - epel-release
9 - python-dnf
10 when: >
11 ansible_distribution != "Fedora"
12
13- name: redhat | installing erlang
14 dnf:
15 name: "erlang"
16 state: present
17
18- name: redhat | adding RabbitMQ public GPG key
19 rpm_key:
20 key: "{{ rabbitmq_redhat_repo_key }}"
21 state: present
22
23- name: redhat | downloading RabbitMQ
24 get_url:
25 url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}"
26 dest: "/opt/{{ rabbitmq_redhat_package }}"
27
28- name: redhat | installing RabbitMQ
29 dnf:
30 name: "/opt/{{ rabbitmq_redhat_package }}"
31 state: present
32
33- name: redhat | starting and enabling RabbitMQ service
34 service:
35 name: "rabbitmq-server"
36 state: started
37 enabled: yes
38
39- name: redhat | enabling the RabbitMQ Management Console
40 rabbitmq_plugin:
41 names: rabbitmq_management
42 state: enabled
43 notify: restart rabbitmq-server