zuul-jobs/roles/multi-node-firewall/vars/RedHat.yaml
Chandan Kumar (raukadah) 6aa268834c Introduce iptables_package var
on RHEL-9 there is no iptables package, we need to install
iptables-nft package here.

In CentOS Stream-9 and Fedora-34 onwards iptables-nft package
is available.[1]

But we also need to support other distros, so we are introducing
iptables_packages var and distro specific var files (having different
name) for installing iptables package.

[1]. https://pkgs.org/download/iptables-nft

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I8d5d3182996fc1e83b7f4f7eb99cf4c347d6ef1f
2022-01-19 15:11:08 +05:30

8 lines
137 B
YAML

---
iptables_package: >-
{% if ansible_distribution_major_version|int <= 8 -%}
iptables
{%- else -%}
iptables-nft
{%- endif %}