Ansible BuildAnsible Build
Home
Roles
Scripts
Mint System
Chat
GitHub
Home
Roles
Scripts
Mint System
Chat
GitHub
  • UFW role

ufw logo

UFW role

Configures UFW rules.

Usage

Configure the role.

ufw_enabled: true # default false
host_ufw_rules_sets:
  custom:
    - rule: allow
      port: "46022"
      proto: tcp
ufw_active_rules: # default: - default
  - bigbluebutton
  - wireguard
  - k3s
  - custom

And include it in your playbook.

- hosts: ufw
  roles:
  - role: ufw

Docs

Disable or enable ufw manually

Enable ufw manually.

ufw enable

Disable ufw manually.

ufw disable
Edit this page
Last Updated: 8/18/25, 8:33 AM
Contributors: Janik von Rotz