aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/redhat.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2016-07-02 01:43:14 -0400
committerGitHub <noreply@github.com>2016-07-02 01:43:14 -0400
commit2922c75a7fce9ba62d1d78a50bca7f14e707cd9d (patch)
tree92e2b0a4b2df0cc9bc8a809b4e7dd35181d7de8f /tasks/redhat.yml
parentbc0ca3da9ef79d3e75191500e941e63c5dbb6158 (diff)
parentb6c0cb98568bb67c29bc54b7bc061a2138af6666 (diff)
downloadansible-rabbitmq-2922c75a7fce9ba62d1d78a50bca7f14e707cd9d.tar.gz
ansible-rabbitmq-2922c75a7fce9ba62d1d78a50bca7f14e707cd9d.tar.zst
ansible-rabbitmq-2922c75a7fce9ba62d1d78a50bca7f14e707cd9d.zip
Merge pull request #2 from black-roland/fix-redhat
Fix installation on CentOS
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