roles/common: Use iptables 1.8.3 on Debian Buster

There is a bug in iptables 1.8.2 in Debian 10 "Buster" that causes
firewalld to fail when restoring rules. The bug has been fixed in
iptables 1.8.3, which is currently in buster-backports.

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914694
This commit is contained in:
Alan Orth 2019-08-01 15:36:15 +03:00
parent 5d0648a360
commit 7551b803f6
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,10 @@
---
- block:
- name: Install iptables 1.8.3 on Debian Buster
when: ansible_distribution_major_version is version_compare('10', '==')
apt: pkg=iptables state=present default_release=buster-backports
- name: Install firewalld and deps
when: ansible_distribution_major_version is version_compare('8', '>=')
apt: pkg={{ item }} state=present

View File

@ -12,4 +12,9 @@ deb http://{{ apt_mirror }}/debian/ {{ ansible_distribution_release }} main cont
deb http://security.debian.org/debian-security {{ ansible_distribution_release }}/updates main contrib non-free
deb http://{{ apt_mirror }}/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
{% if ansible_distribution_major_version is version_compare('10', '==') %}
deb http://{{ apt_mirror }}/debian/ buster-backports main
{% endif %}
{% endif %} {# ansible_distribution #}