Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support raspbian bullseye #185

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions roles/raspberrypi/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@
( ansible_facts.lsb.id|default("") == "Debian" or
ansible_facts.lsb.description|default("") is match("Debian") )

- 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: Set detected_distribution_major_version
set_fact:
detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"
when: >

Check failure on line 47 in roles/raspberrypi/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

47:10 [trailing-spaces] trailing spaces
( detected_distribution | default("") == "Raspbian" or
detected_distribution | default("") == "Debian" )

Expand Down
8 changes: 8 additions & 0 deletions roles/raspberrypi/tasks/prereq/Raspbian-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Activating cgroup support
lineinfile:
path: /boot/cmdline.txt
regexp: '^((?!.*\bcgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_memory=1 cgroup_enable=memory'
backrefs: true
notify: reboot
Loading