clean up ufw idempotently when rerunning setup (because if we are resetting passwords its probably in a bad state)
This commit is contained in:
parent
a491074c4f
commit
5b84cafa3d
@ -61,6 +61,12 @@
|
|||||||
name: ufw
|
name: ufw
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure UFW is disabled
|
||||||
|
ufw: state=disabled
|
||||||
|
|
||||||
|
- name: Reset UFW
|
||||||
|
ufw: state=reset
|
||||||
|
|
||||||
- name: Configure ufw defaults
|
- name: Configure ufw defaults
|
||||||
ufw: direction={{ item.direction }} policy={{ item.policy }}
|
ufw: direction={{ item.direction }} policy={{ item.policy }}
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user