mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-06-24 12:07:21 +02:00
Feature/oracle linux11 (#532)
* fix: handle Oracle Linux UEK kernel package name for br_netfilter Oracle Linux uses the Unbreakable Enterprise Kernel (UEK) instead of the standard RHEL kernel. The `kernel-modules-extra` package does not exist on Oracle Linux — the equivalent is `kernel-uek-modules-extra`. Without this fix, the prereq role fails on Oracle Linux 10 with: "No package kernel-modules-extra available." Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> * chore: update README to include Oracle Linux Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> --------- Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> Co-authored-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com>
This commit is contained in:
@@ -12,11 +12,22 @@
|
||||
update_cache: "{{ airgap_dir is not defined }}"
|
||||
|
||||
- name: Install Dependent RHEL 10 Package
|
||||
when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == "10"
|
||||
when:
|
||||
- ansible_facts['os_family'] == 'RedHat'
|
||||
- ansible_facts['distribution_major_version'] == "10"
|
||||
- ansible_facts['distribution'] != 'OracleLinux'
|
||||
ansible.builtin.dnf:
|
||||
name: kernel-modules-extra # Load br_netfilter module
|
||||
update_cache: "{{ airgap_dir is not defined }}"
|
||||
|
||||
- name: Install Dependent Oracle Linux 10 Package
|
||||
when:
|
||||
- ansible_facts['distribution'] == 'OracleLinux'
|
||||
- ansible_facts['distribution_major_version'] == "10"
|
||||
ansible.builtin.dnf:
|
||||
name: kernel-uek-modules-extra # Load br_netfilter module (UEK kernel)
|
||||
update_cache: "{{ airgap_dir is not defined }}"
|
||||
|
||||
- name: Enable IPv4 forwarding
|
||||
ansible.posix.sysctl:
|
||||
name: net.ipv4.ip_forward
|
||||
|
||||
Reference in New Issue
Block a user