From a553f4343e11f529db33f2bcdc67ab8f464fa608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=87=BA=F0=9F=87=A6=20Sviatoslav=20Sydorenko=20=28?= =?UTF-8?q?=D0=A1=D0=B2=D1=8F=D1=82=D0=BE=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1?= =?UTF-8?q?=D0=B8=D0=B4=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE=29?= Date: Fri, 14 Nov 2025 19:23:02 +0100 Subject: [PATCH] [stable-2.18] Install `xt_comment` kernel mod @ `iptables` test (#86187) (#86193) This patch fixes integration test jobs running under RHEL 10.0 that don't have this extension pre-installed. Co-Authored-By: sivel / Matt Martz (cherry picked from commit 69c9fbed26543bb3a998c2b0d0a76db05358febf) --- test/integration/targets/iptables/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/integration/targets/iptables/tasks/main.yml b/test/integration/targets/iptables/tasks/main.yml index cc3ba808273..0f7a5c0853f 100644 --- a/test/integration/targets/iptables/tasks/main.yml +++ b/test/integration/targets/iptables/tasks/main.yml @@ -35,4 +35,17 @@ # prevent attempts to upgrade the kernel and install kernel modules for a non-running kernel version exclude: "{{ 'kernel-core' if ansible_distribution == 'RedHat' else omit }}" +- name: install xt_comment for iptables `-m comment` tests on RHEL 10 + dnf: + name: + - kernel-modules-extra-{{ ansible_facts.kernel }} + state: present + exclude: + # prevent attempts to upgrade the kernel and install kernel modules for a non-running kernel version + - kernel-core + when: + - ansible_distribution == 'RedHat' + - >- + ansible_distribution_major_version | int >= 10 + - import_tasks: chain_management.yml