clean up ufw idempotently when rerunning setup (because if we are resetting passwords its probably in a bad state)

This commit is contained in:
citty 2021-10-15 22:37:21 -04:00
parent a491074c4f
commit 5b84cafa3d

View File

@ -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: