Enable UFW across Ubuntu profiles

This commit is contained in:
Fabio Scotto di Santolo
2026-03-25 21:44:13 +01:00
parent ac27c5757e
commit 16afdf845a
4 changed files with 27 additions and 0 deletions

View File

@@ -11,3 +11,19 @@
loop: "{{ server_dotfiles | default([]) }}"
loop_control:
label: "{{ item.dest }}"
- name: Apply server UFW rules
tags: [services, packages]
community.general.ufw:
rule: "{{ item.rule }}"
name: "{{ item.name | default(omit) }}"
port: "{{ item.port | default(omit) }}"
proto: "{{ item.proto | default(omit) }}"
loop: "{{ server_ufw_rules | default([]) }}"
loop_control:
label: "{{ item.name | default(item.port) }}"
- name: Enable UFW firewall on server
tags: [services, packages]
community.general.ufw:
state: enabled

View File

@@ -251,3 +251,8 @@
environment: "{{ workstation_gnome_environment }}"
changed_when: workstation_gnome_extensions_state_changed
when: workstation_gnome_extensions_state_changed
- name: Enable UFW firewall on workstation
tags: [services, packages]
community.general.ufw:
state: enabled