Skip to content

Commit

Permalink
Changed to use major_release instead of codename
Browse files Browse the repository at this point in the history
Renamed task file to `Raspbian-11` (from `Raspbian-bullseye`)
Removed set_facts for distribution codename
  • Loading branch information
husjon committed May 8, 2022
1 parent 9d57bfe commit 506adef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions roles/raspberrypi/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,15 @@
- name: Set detected_distribution_major_version
set_fact:
detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"
detected_distribution_codename: "{{ ansible_facts.lsb.codename }}"
when:
- detected_distribution | default("") == "Raspbian"

- name: execute OS related tasks on the Raspberry Pi
include_tasks: "{{ item }}"
with_first_found:
- "prereq/{{ detected_distribution }}-{{ detected_distribution_major_version }}.yml"
- "prereq/{{ detected_distribution }}-{{ detected_distribution_codename }}.yml"
- "prereq/{{ detected_distribution }}.yml"
- "prereq/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "prereq/{{ ansible_distribution }}-{{ ansible_distribution_codename }}.yml"
- "prereq/{{ ansible_distribution }}.yml"
- "prereq/default.yml"
when:
Expand Down

0 comments on commit 506adef

Please sign in to comment.