roles/common: Update apt in firewall task

Otherwise the buster-backports source might not be available, as
the nightly security upates use a different apt sources.list.
This commit is contained in:
Alan Orth 2019-10-05 12:00:08 +03:00
parent 0b8f82ba12
commit 532b533516
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -3,7 +3,7 @@
- block: - block:
- name: Install iptables 1.8.3 on Debian Buster - name: Install iptables 1.8.3 on Debian Buster
when: ansible_distribution_major_version is version_compare('10', '==') when: ansible_distribution_major_version is version_compare('10', '==')
apt: pkg=iptables state=present default_release=buster-backports apt: pkg=iptables state=present default_release=buster-backports update_cache=yes cache_valid_time=3600
- name: Install firewalld and deps - name: Install firewalld and deps
when: ansible_distribution_major_version is version_compare('8', '>=') when: ansible_distribution_major_version is version_compare('8', '>=')