roles/common: Remove iptables on newer Debian
This commit is contained in:
parent
f7b9aa67f5
commit
a4acc85704
@ -25,6 +25,10 @@
|
|||||||
- name: Install firewall packages
|
- name: Install firewall packages
|
||||||
apt: pkg={{ debian_firewall_packages }} state=present cache_valid_time=3600
|
apt: pkg={{ debian_firewall_packages }} state=present cache_valid_time=3600
|
||||||
|
|
||||||
|
- name: Remove iptables on newer Debian
|
||||||
|
when: ansible_distribution_major_version is version('11', '>=')
|
||||||
|
apt: pkg=iptables state=absent
|
||||||
|
|
||||||
- name: Copy nftables.conf
|
- name: Copy nftables.conf
|
||||||
when: ansible_distribution_major_version is version('11', '>=')
|
when: ansible_distribution_major_version is version('11', '>=')
|
||||||
template: src=nftables.conf.j2 dest=/etc/nftables.conf owner=root mode=0644
|
template: src=nftables.conf.j2 dest=/etc/nftables.conf owner=root mode=0644
|
||||||
|
Loading…
Reference in New Issue
Block a user