add ufw and mosh roles

This commit is contained in:
2023-08-30 15:27:58 +02:00
parent 39c2b425bd
commit b8d26d4938
4 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
- name: Install ufw
ansible.builtin.package:
name: ufw
state: present
- name: Allow SSH connection in ufw
community.general.ufw:
rule: allow
name: OpenSSH
- name: Enable ufw
community.general.ufw:
state: enabled