From 5b84cafa3df4c09d2355465eeac90c40b16d8e7c Mon Sep 17 00:00:00 2001 From: citty Date: Fri, 15 Oct 2021 22:37:21 -0400 Subject: [PATCH] clean up ufw idempotently when rerunning setup (because if we are resetting passwords its probably in a bad state) --- roles/immortal/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/immortal/tasks/main.yml b/roles/immortal/tasks/main.yml index c152394..ba0f1a5 100644 --- a/roles/immortal/tasks/main.yml +++ b/roles/immortal/tasks/main.yml @@ -61,6 +61,12 @@ name: ufw state: present + - name: Ensure UFW is disabled + ufw: state=disabled + + - name: Reset UFW + ufw: state=reset + - name: Configure ufw defaults ufw: direction={{ item.direction }} policy={{ item.policy }} with_items: