Ansible role for setting up firewalld.
Install firewalld, manage zones and interface assignments and configure rules. Rich and direct rules are also supported.
This role has no special prerequisites.
python3
(Python 3.8 or later)python3-nftables
- ansible >= 2.15
This role has no dependencies.
OS Family | Distribution | Version | Container Image |
---|---|---|---|
RedHat | AlmaLinux | 8 | jomrr/molecule-almalinux:8 |
9 | jomrr/molecule-almalinux:9 | ||
Alpine | Alpine | 3.18 | jomrr/molecule-alpine:3.18 |
3.19 | jomrr/molecule-alpine:3.19 | ||
Debian | Debian | 11 | jomrr/molecule-debian:11 |
12 | jomrr/molecule-debian:12 | ||
RedHat | Fedora | 39 | jomrr/molecule-fedora:39 |
40 | jomrr/molecule-fedora:40 | ||
rawhide | jomrr/molecule-fedora:rawhide | ||
Debian | Ubuntu | 20.04 | jomrr/molecule-ubuntu:20.04 |
22.04 | jomrr/molecule-ubuntu:22.04 | ||
24.04 | jomrr/molecule-ubuntu:24.04 |
No role default variables specified, see defaults/main.yml.
Example playbooks(s) that show how to use this role.
A simple default example playbook for using jomrr.firewalld.
---
# name: "jomrr.firewalld"
# file: "playbook_firewalld.yml"
- name: "PLAYBOOK | firewalld"
hosts: all
gather_facts: true
roles:
- role: "jomrr.firewalld"