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

+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]