|
|
@ -59,23 +59,26 @@ |
|
|
|
when: ansible_pkg_mgr == 'yum' |
|
|
|
|
|
|
|
- name: Install python-apt for Debian distribs |
|
|
|
shell: apt-get install -y python-apt |
|
|
|
command: apt-get install -y python-apt |
|
|
|
when: ansible_os_family == "Debian" |
|
|
|
changed_when: False |
|
|
|
|
|
|
|
- name: Install python-dnf for latest RedHat versions |
|
|
|
shell: dnf install -y python-dnf yum |
|
|
|
command: dnf install -y python-dnf yum |
|
|
|
when: ansible_distribution == "Fedora" and |
|
|
|
ansible_distribution_major_version > 21 |
|
|
|
changed_when: False |
|
|
|
|
|
|
|
- name: Install epel-release for RedHat and CentOS distribs |
|
|
|
- name: Install epel-release on RHEL |
|
|
|
command: rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm |
|
|
|
when: ansible_distribution == "RedHat" |
|
|
|
|
|
|
|
- name: Install epel-release on CentOS |
|
|
|
action: |
|
|
|
module: "{{ ansible_pkg_mgr }}" |
|
|
|
name: "epel-release" |
|
|
|
state: latest |
|
|
|
when: ansible_distribution == "RedHat" or |
|
|
|
ansible_distribution == "CentOS" |
|
|
|
when: ansible_distribution == "CentOS" |
|
|
|
|
|
|
|
- name: Install packages requirements |
|
|
|
action: |
|
|
|