Browse Source

Merge pull request #123 from Smana/install_epel_rhel

install epel release for rhel
pull/126/head
Smaine Kahlouch 8 years ago
parent
commit
64be24dd20
2 changed files with 8 additions and 1 deletions
  1. 8
      roles/kubernetes/preinstall/tasks/main.yml
  2. 1
      roles/kubernetes/preinstall/vars/centos.yml

8
roles/kubernetes/preinstall/tasks/main.yml

@ -52,6 +52,14 @@
ansible_distribution_major_version > 21
changed_when: False
- name: Install epel-release for RedHat and CentOS distribs
action:
module: "{{ ansible_pkg_mgr }}"
name: "epel-release"
state: latest
when: ansible_distribution == "RedHat" or
ansible_distribution == "CentOS"
- name: Install packages requirements
action:
module: "{{ ansible_pkg_mgr }}"

1
roles/kubernetes/preinstall/vars/centos.yml

@ -1,4 +1,3 @@
required_pkgs:
- epel-release
- libselinux-python
- device-mapper-libs
Loading…
Cancel
Save