aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/redhat.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/redhat.yml')
-rw-r--r--tasks/redhat.yml17
1 files changed, 11 insertions, 6 deletions
diff --git a/tasks/redhat.yml b/tasks/redhat.yml
index afa714c..0c7b97a 100644
--- a/tasks/redhat.yml
+++ b/tasks/redhat.yml
@@ -1,24 +1,27 @@
1--- 1---
2- name: redhat | installing pre-reqs 2- name: redhat | installing pre-reqs
3 yum: 3 yum:
4 name: "{{ item }}" 4 name: ['epel-release', 'wget']
5 state: present 5 state: present
6 become: true 6 become: true
7 with_items: 7 register: result
8 - epel-release 8 until: result is successful
9 - wget
10 9
11- name: redhat | installing erlang 10- name: redhat | installing erlang
12 yum: 11 yum:
13 name: "erlang" 12 name: erlang
14 state: present 13 state: present
15 become: true 14 become: true
15 register: result
16 until: result is successful
16 17
17- name: redhat | adding RabbitMQ public GPG key 18- name: redhat | adding RabbitMQ public GPG key
18 rpm_key: 19 rpm_key:
19 key: "{{ rabbitmq_redhat_repo_key }}" 20 key: "{{ rabbitmq_redhat_repo_key }}"
20 state: present 21 state: present
21 become: true 22 become: true
23 register: result
24 until: result is successful
22 25
23- name: redhat | downloading RabbitMQ 26- name: redhat | downloading RabbitMQ
24 get_url: 27 get_url:
@@ -31,10 +34,12 @@
31 name: "/opt/{{ rabbitmq_redhat_package }}" 34 name: "/opt/{{ rabbitmq_redhat_package }}"
32 state: present 35 state: present
33 become: true 36 become: true
37 register: result
38 until: result is successful
34 39
35- name: redhat | starting and enabling RabbitMQ service 40- name: redhat | starting and enabling RabbitMQ service
36 service: 41 service:
37 name: "rabbitmq-server" 42 name: rabbitmq-server
38 state: started 43 state: started
39 enabled: yes 44 enabled: yes
40 become: true 45 become: true