mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
Drop install of python-libselinux for RHEL family below 8
RHEL 7 and derivates support has been removed from some time, clean up of leftovers.
This commit is contained in:
@@ -108,11 +108,3 @@
|
|||||||
when:
|
when:
|
||||||
- fastestmirror.stat.exists
|
- fastestmirror.stat.exists
|
||||||
- not centos_fastestmirror_enabled
|
- not centos_fastestmirror_enabled
|
||||||
|
|
||||||
# libselinux-python is required on SELinux enabled hosts
|
|
||||||
# See https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#managed-node-requirements
|
|
||||||
- name: Install libselinux python package
|
|
||||||
package:
|
|
||||||
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
|
||||||
state: present
|
|
||||||
become: true
|
|
||||||
|
|||||||
@@ -93,11 +93,3 @@
|
|||||||
when:
|
when:
|
||||||
- fastestmirror.stat.exists
|
- fastestmirror.stat.exists
|
||||||
- not centos_fastestmirror_enabled
|
- not centos_fastestmirror_enabled
|
||||||
|
|
||||||
# libselinux-python is required on SELinux enabled hosts
|
|
||||||
# See https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#managed-node-requirements
|
|
||||||
- name: Install libselinux python package
|
|
||||||
package:
|
|
||||||
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
|
||||||
state: present
|
|
||||||
become: true
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ pkgs:
|
|||||||
libseccomp2:
|
libseccomp2:
|
||||||
- "{{ ansible_os_family in ['Debian', 'Suse'] }}"
|
- "{{ ansible_os_family in ['Debian', 'Suse'] }}"
|
||||||
- "{{ 'k8s_cluster' in group_names }}"
|
- "{{ 'k8s_cluster' in group_names }}"
|
||||||
libselinux-python: # TODO: Handle rehat_family + major < 8
|
libselinux-python:
|
||||||
- "{{ ansible_distribution == 'Amazon' }}"
|
- "{{ ansible_distribution == 'Amazon' }}"
|
||||||
libselinux-python3:
|
libselinux-python3:
|
||||||
- "{{ ansible_distribution == 'Fedora' }}"
|
- "{{ ansible_distribution == 'Fedora' }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user