mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
update
This commit is contained in:
20
playbooks/roles/base_system/tasks/firewall.yml
Normal file
20
playbooks/roles/base_system/tasks/firewall.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: Install firewall
|
||||
tags:
|
||||
- install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- ufw
|
||||
|
||||
- name: UFW - Allow SSH connections
|
||||
tags:
|
||||
- config
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
name: OpenSSH
|
||||
|
||||
- name: UFW - Enable and deny by default
|
||||
tags:
|
||||
- config
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
default: deny
|
||||
Reference in New Issue
Block a user