added scaffolding and ufw setup

This commit is contained in:
2026-06-19 11:56:51 -05:00
commit 17d19d8daa
6 changed files with 126 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
galaxy_info:
author: cjr
description: Configure and enable ufw firewall
license: BSD-3-Clause
min_ansible_version: "2.1"
+26
View File
@@ -0,0 +1,26 @@
---
- name: Install packages needed for ufw
community.general.pacman:
name:
- ufw
- ufw-extras
state: present
- name: Configure the firewall incoming connection policy
community.general.ufw:
direction: incoming
policy: deny
- name: Configure the firewall outgoing connection policy
community.general.ufw:
direction: outgoing
policy: allow
- name: Allow incoming ports
community.general.ufw:
rule: allow
port: "22"
proto: tcp
- name: Enable UFW
community.general.ufw:
state: enabled