aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2022-01-11 14:19:40 -0800
committerGravatar MarkKoz <[email protected]>2022-01-11 14:19:40 -0800
commit879d0ca388dbc336c84ac12d51cc7a37d930c311 (patch)
treeaf20188b34ac1c85c00d8d7964863102c1c8d37f /roles
parentEnsure SSH is allowed before setting default deny (diff)
Install UFW
Diffstat (limited to 'roles')
-rw-r--r--roles/ufw/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/ufw/tasks/main.yml b/roles/ufw/tasks/main.yml
index 00749d2..ae6093b 100644
--- a/roles/ufw/tasks/main.yml
+++ b/roles/ufw/tasks/main.yml
@@ -1,3 +1,10 @@
+- name: Install UFW
+ apt:
+ update_cache: true
+ cache_valid_time: 3600
+ pkg:
+ - ufw
+
- name: Allow OpenSSH
community.general.ufw:
rule: allow