Begin setting up UFW

This commit is contained in:
Z. Charles Dziura 2024-12-08 08:53:49 -05:00
parent c103885050
commit 5f6c3c1c8e
2 changed files with 22 additions and 2 deletions

View file

@ -10,6 +10,7 @@
ansible.builtin.package:
name: curl,python3-pip,python3-pexpect,vim
state: present
- import_playbook: 01-setup/setup-valkey.yml
- import_playbook: 01-setup/setup-postgres.yml
- import_playbook: 01-setup/setup-base-system.yml
# - import_playbook: 01-setup/setup-valkey.yml
# - import_playbook: 01-setup/setup-postgres.yml

View file

@ -0,0 +1,19 @@
---
- name: Setup Base System
hosts: alpha
become: yes
vars_files:
- '{{ inventory_dir }}/vars.yml'
tasks:
- name: Install UFW
ansible.builtin.package:
name: ufw
state: present
- name: Allow Access to Named Applications
community.general.ufw:
rule: allow
name: '{{ item }}'
delete: true
loop:
- OpenSSH
- WWW Full