Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates

This commit is contained in:
boris committed 2026-07-08 10:29:51 +01:00
commit 53695f4fff
411 files changed
+7817

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# ufw
Applies the default firewall policy: deny incoming, allow outgoing, allow SSH,
and open any service ports declared by host or application variables.
Tags: `ufw`, `firewall`.
+6
View File
@@ -0,0 +1,6 @@
---
ufw_default_incoming_policy: deny
ufw_default_outgoing_policy: allow
ufw_tcp_ports: "{{ ufw_allowed_tcp_ports }}"
ufw_udp_ports: "{{ ufw_allowed_udp_ports }}"
+1
View File
@@ -0,0 +1 @@
+5
View File
@@ -0,0 +1,5 @@
---
- name: reload ufw
community.general.ufw:
state: reloaded
+40
View File
@@ -0,0 +1,40 @@
---
- name: Install UFW
ansible.builtin.apt:
name: ufw
state: present
tags: [ufw]
- name: Set incoming policy
community.general.ufw:
direction: incoming
policy: "{{ ufw_default_incoming_policy }}"
tags: [ufw, firewall]
- name: Set outgoing policy
community.general.ufw:
direction: outgoing
policy: "{{ ufw_default_outgoing_policy }}"
tags: [ufw, firewall]
- name: Allow TCP ports
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: tcp
loop: "{{ ufw_tcp_ports }}"
tags: [ufw, firewall]
- name: Allow UDP ports
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: udp
loop: "{{ ufw_udp_ports }}"
tags: [ufw, firewall]
- name: Enable UFW
community.general.ufw:
state: enabled
tags: [ufw, firewall]
+1
View File
@@ -0,0 +1 @@