Fixed issue with tasks not running on Debian Bullseye (#18)

This commit is contained in:
svartis 2022-04-05 04:44:38 +02:00 committed by GitHub
parent 24225c69c9
commit 1310a1509d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -39,6 +39,14 @@
when:
- detected_distribution | default("") == "Raspbian"
- name: Set detected_distribution to Raspbian (ARM64 on Debian Bullseye)
set_fact:
detected_distribution: Raspbian
when:
- ansible_facts.architecture is search("aarch64")
- raspberry_pi|default(false)
- ansible_facts.lsb.description|default("") is match("Debian.*bullseye")
- name: execute OS related tasks on the Raspberry Pi
include_tasks: "{{ item }}"
with_first_found:

View File

@ -7,6 +7,9 @@
backrefs: true
notify: reboot
- name: Install iptables
apt: name=iptables state=present
- name: Flush iptables before changing to iptables-legacy
iptables:
flush: true