Begin setting up UFW
This commit is contained in:
parent
c103885050
commit
5f6c3c1c8e
2 changed files with 22 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: curl,python3-pip,python3-pexpect,vim
|
name: curl,python3-pip,python3-pexpect,vim
|
||||||
state: present
|
state: present
|
||||||
- import_playbook: 01-setup/setup-valkey.yml
|
- import_playbook: 01-setup/setup-base-system.yml
|
||||||
- import_playbook: 01-setup/setup-postgres.yml
|
# - import_playbook: 01-setup/setup-valkey.yml
|
||||||
|
# - import_playbook: 01-setup/setup-postgres.yml
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue