From db53f595fd91d07a4956da37af27146ec8439f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Gon=C3=A7alves?= <30077840+joaopedrocg27@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:20:06 +0000 Subject: [PATCH] feat(k3s): added support for latest raspberrypi os (debian 12 bookworm) (#404) * feat(k3s): added support for latest raspberrypi os (debian 12 bookworm) * Update test.yml * Revert test workflow --------- Co-authored-by: Techno Tim --- roles/raspberrypi/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/raspberrypi/tasks/main.yml b/roles/raspberrypi/tasks/main.yml index 25de61a..9b4c7d4 100644 --- a/roles/raspberrypi/tasks/main.yml +++ b/roles/raspberrypi/tasks/main.yml @@ -31,6 +31,14 @@ - raspberry_pi|default(false) - ansible_facts.lsb.description|default("") is match(allowed_descriptions | join('|')) +- name: Set detected_distribution to Raspbian (ARM64 on Debian Bookworm) + set_fact: + detected_distribution: Raspbian + when: + - ansible_facts.architecture is search("aarch64") + - raspberry_pi|default(false) + - ansible_facts.lsb.description|default("") is match("Debian.*bookworm") + - name: Set detected_distribution_major_version set_fact: detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"