From 69c9fbed26543bb3a998c2b0d0a76db05358febf 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: Thu, 13 Nov 2025 18:48:35 +0100 Subject: [PATCH] Install `xt_comment` kernel mod @ `iptables` test (#86187) 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 ci_complete ci_coverage --- test/integration/targets/iptables/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/targets/iptables/tasks/main.yml b/test/integration/targets/iptables/tasks/main.yml index aef2e34adf6..ec88ab7711b 100644 --- a/test/integration/targets/iptables/tasks/main.yml +++ b/test/integration/targets/iptables/tasks/main.yml @@ -35,6 +35,16 @@ # 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' + - name: Use iptables with unnecessary extension match iptables: chain: INPUT