Purge iptables-persistent
This commit is contained in:
parent
7acfb0b025
commit
2df3aaaa35
2 changed files with 15 additions and 0 deletions
13
tasks/iptables/purge.yml
Normal file
13
tasks/iptables/purge.yml
Normal file
|
@ -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
|
- include_tasks: ssh.yml
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
|
- include_tasks: iptables/purge.yml
|
||||||
|
when common__iptables__state == 'purge'
|
||||||
- include_tasks: iptables/install.yml
|
- include_tasks: iptables/install.yml
|
||||||
when: common__iptables__state == 'install'
|
when: common__iptables__state == 'install'
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
Loading…
Reference in a new issue