Purge iptables-persistent
This commit is contained in:
parent
7acfb0b025
commit
2df3aaaa35
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Purge iptables-persistent
|
||||
apt:
|
||||
state: absent
|
||||
purge: true
|
||||
name:
|
||||
- iptables-persistent
|
||||
- netfilter-persistent
|
||||
|
||||
- name: Delete iptables-persistent configuration
|
||||
file:
|
||||
state: absent
|
||||
path: '{{ common__iptables__conf_dir }}'
|
|
@ -4,6 +4,8 @@
|
|||
- include_tasks: ssh.yml
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: iptables/purge.yml
|
||||
when common__iptables__state == 'purge'
|
||||
- include_tasks: iptables/install.yml
|
||||
when: common__iptables__state == 'install'
|
||||
- meta: flush_handlers
|
||||
|
|
Loading…
Reference in New Issue