No description
Find a file
semantic-release-bot 1f2918d384 chore(release): 1.8.0 [skip ci]
# [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 ([c2e027f](c2e027f24c))
* Drop support for Fedora 41 ([bfbd917](bfbd9172bf))
2026-03-15 14:32:33 +00:00
.github/workflows Update supported platforms & CI 2026-03-14 20:06:22 +01:00
defaults feat: Update supported platforms & CI 2023-08-14 19:44:16 +02:00
meta Update CI 2026-03-07 01:08:15 +01:00
molecule/default Update supported platforms & CI 2026-03-14 15:32:13 +01:00
tasks fix: Fix loop label to string 2023-09-23 00:17:25 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 13:04:15 +02:00
.cicd Update CI 2026-03-07 01:08:15 +01:00
.cicd.overwrite Update CI 2026-03-07 01:08:15 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 23:54:22 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 13:48:52 +01:00
.releaserc.yml Update CI 2026-03-07 01:08:15 +01:00
.roles feat: Update CI to latest standards 2022-10-09 13:04:15 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 13:48:52 +01:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2026-03-15 14:32:33 +00:00
README.md Update CI 2026-03-07 01:08:15 +01:00

CI

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