roles/common: Remove iptables on newer Debian

This commit is contained in:
Alan Orth 2021-09-27 10:35:38 +03:00
parent f7b9aa67f5
commit a4acc85704
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -25,6 +25,10 @@
- name: Install firewall packages
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
when: ansible_distribution_major_version is version('11', '>=')
template: src=nftables.conf.j2 dest=/etc/nftables.conf owner=root mode=0644