mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
install epel release for rhel
install required packages before common roles/kubernetes/preinstall/tasks/main.yml
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user