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

This commit is contained in:
svartis authored and GitHub committed 2022-04-04 21:44:38 -05:00
1 parent 24225c69c9
commit 1310a1509d
2 files changed
+11

No files matched your search

+8
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: