aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/redhat.yml
diff options
context:
space:
mode:
authorRoland Chernov <mail@roland.black>2016-06-29 02:06:25 +0900
committerRoland Chernov <mail@roland.black>2016-06-29 02:27:38 +0900
commitb6c0cb98568bb67c29bc54b7bc061a2138af6666 (patch)
tree92e2b0a4b2df0cc9bc8a809b4e7dd35181d7de8f /tasks/redhat.yml
parentbc0ca3da9ef79d3e75191500e941e63c5dbb6158 (diff)
downloadansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.tar.gz
ansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.tar.zst
ansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.zip
Separate RedHat and Fedora
Diffstat (limited to 'tasks/redhat.yml')
-rw-r--r--tasks/redhat.yml16
1 files changed, 3 insertions, 13 deletions
diff --git a/tasks/redhat.yml b/tasks/redhat.yml
index 1624d8f..484597d 100644
--- a/tasks/redhat.yml
+++ b/tasks/redhat.yml
@@ -1,24 +1,14 @@
1--- 1---
2- name: redhat | installing pre-reqs (yum) 2- name: redhat | installing pre-reqs
3 yum: 3 yum:
4 name: "{{ item }}" 4 name: "{{ item }}"
5 state: present 5 state: present
6 with_items: 6 with_items:
7 - dnf
8 - epel-release 7 - epel-release
9 - python-dnf
10 when: >
11 ansible_distribution != "Fedora"
12
13- name: redhat | installing pre-reqs (dnf)
14 dnf:
15 name: "{{ item }}"
16 state: present
17 with_items:
18 - wget 8 - wget
19 9
20- name: redhat | installing erlang 10- name: redhat | installing erlang
21 dnf: 11 yum:
22 name: "erlang" 12 name: "erlang"
23 state: present 13 state: present
24 14
@@ -33,7 +23,7 @@
33 dest: "/opt/{{ rabbitmq_redhat_package }}" 23 dest: "/opt/{{ rabbitmq_redhat_package }}"
34 24
35- name: redhat | installing RabbitMQ 25- name: redhat | installing RabbitMQ
36 dnf: 26 yum:
37 name: "/opt/{{ rabbitmq_redhat_package }}" 27 name: "/opt/{{ rabbitmq_redhat_package }}"
38 state: present 28 state: present
39 29