mirror of
https://github.com/de-it-krachten/ansible-role-ufw
synced 2026-05-14 03:51:46 +00:00
No description
- Jinja 100%
# [1.8.0](https://github.com/de-it-krachten/ansible-role-ufw/compare/v1.7.0...v1.8.0) (2026-03-15) ### Features * Added support for Fedora 43 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-ufw
Installs & configure UFW
Dependencies
Roles
None
Collections
- community.general
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Should ssh be allow
ufw_enable_ssh: true
# name of the ssh rule
ufw_ssh_rule: OpenSSH
# Tun on/off logging
ufw_logging: 'on'
defaults/family-Debian.yml
# ufw packages
ufw_packages:
- ufw
- procps
- iproute2
- netbase
defaults/family-RedHat.yml
# ufw packages
ufw_packages:
- ufw
# name of the ssh rule
ufw_ssh_rule: SSH
defaults/family-Suse.yml
# ufw packages
ufw_packages:
- ufw
# name of the ssh rule
ufw_ssh_rule: SSH
defaults/Fedora.yml
# ufw packages
ufw_packages:
- ufw
- procps-ng
# name of the ssh rule
ufw_ssh_rule: SSH
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'ufw'
hosts: all
become: 'yes'
tasks:
- name: Include role 'ufw'
ansible.builtin.include_role:
name: ufw