From b6c0cb98568bb67c29bc54b7bc061a2138af6666 Mon Sep 17 00:00:00 2001 From: Roland Chernov Date: Wed, 29 Jun 2016 02:06:25 +0900 Subject: Separate RedHat and Fedora --- tasks/redhat.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'tasks/redhat.yml') 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 @@ --- -- name: redhat | installing pre-reqs (yum) +- name: redhat | installing pre-reqs yum: name: "{{ item }}" state: present with_items: - - dnf - epel-release - - python-dnf - when: > - ansible_distribution != "Fedora" - -- name: redhat | installing pre-reqs (dnf) - dnf: - name: "{{ item }}" - state: present - with_items: - wget - name: redhat | installing erlang - dnf: + yum: name: "erlang" state: present @@ -33,7 +23,7 @@ dest: "/opt/{{ rabbitmq_redhat_package }}" - name: redhat | installing RabbitMQ - dnf: + yum: name: "/opt/{{ rabbitmq_redhat_package }}" state: present -- cgit v1.2.3