mirror of
https://github.com/ansible/ansible.git
synced 2025-11-30 23:16:08 +07:00
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 <matt@sivel.net> ci_complete ci_coverage
This commit is contained in:
committed by
GitHub
parent
eb0ada3d28
commit
69c9fbed26
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user