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