diff --git a/tasks/agent/dependencies/almalinux/install-almalinux-dependencies.yml b/tasks/agent/dependencies/almalinux/install-almalinux-dependencies.yml index 6eecf30d4..0cce1f028 100644 --- a/tasks/agent/dependencies/almalinux/install-almalinux-dependencies.yml +++ b/tasks/agent/dependencies/almalinux/install-almalinux-dependencies.yml @@ -1,15 +1,8 @@ - name: (AlmaLinux) Install Kernel Headers (8) ansible.builtin.dnf: - name: "{{ kernel_header_package }}" + name: "kernel-devel-{{ ansible_kernel }}" state: present - vars: - - match_str: uek - kernel_header_package: kernel-uek-devel-{{ ansible_kernel }} - - match_str: .* - kernel_header_package: kernel-devel-{{ ansible_kernel }} - when: - - ansible_kernel_version | regex_search(.match_str) - - ansible_distribution_major_version == "8" + when: ansible_distribution_major_version == "8" - name: (AlmaLinux) Install Kernel Headers (9) ansible.builtin.dnf: diff --git a/tasks/agent/dependencies/centos/install-centos-dependencies.yml b/tasks/agent/dependencies/centos/install-centos-dependencies.yml index 973a9a50a..f79d20dd9 100644 --- a/tasks/agent/dependencies/centos/install-centos-dependencies.yml +++ b/tasks/agent/dependencies/centos/install-centos-dependencies.yml @@ -1,17 +1,8 @@ - name: (CentOS) Install Kernel Headers (7/8) ansible.builtin.yum: - name: "{{ kernel_devel_package }}" + name: "kernel-devel-{{ ansible_kernel }}" state: present - vars: - - match_str: vzkernel - kernel_devel_package: vzkernel-devel - - match_str: uek - kernel_devel_package: kernel-uek-devel-{{ ansible_kernel }} - - match_str: .* - kernel_devel_package: kernel-devel-{{ ansible_kernel }} - when: - - ansible_kernel_version | regex_search(match_str) - - ansible_distribution_major_version in ["7", "8"] + when: ansible_distribution_major_version in ["7", "8"] - name: (CentOS) Install Kernel Headers (9) ansible.builtin.dnf: diff --git a/tasks/agent/dependencies/rockylinux/install-rockylinux-dependencies.yml b/tasks/agent/dependencies/rockylinux/install-rockylinux-dependencies.yml index 60c97d39b..89b5473fd 100644 --- a/tasks/agent/dependencies/rockylinux/install-rockylinux-dependencies.yml +++ b/tasks/agent/dependencies/rockylinux/install-rockylinux-dependencies.yml @@ -1,15 +1,8 @@ - name: (RockyLinux) Install Kernel Headers (8) ansible.builtin.dnf: - name: "{{ kernel_header_package }}" + name: "kernel-devel-{{ ansible_kernel }}" state: present - vars: - - match_str: uek - kernel_header_package: kernel-uek-devel-{{ ansible_kernel }} - - match_str: .* - kernel_header_package: kernel-devel-{{ ansible_kernel }} - when: - - ansible_kernel_version | regex_search(match_str) - - ansible_distribution_major_version == "8" + when: ansible_distribution_major_version == "8" - name: (RockyLinux) Install Kernel Headers (9) ansible.builtin.dnf: