Skip to content

Commit

Permalink
infer buster/bullseye for raspbian via facts
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgeary committed Feb 3, 2022
1 parent 5914d16 commit 201114f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion playbooks/cloudblock_raspbian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@
msg: "Exiting - the required variable 'doh_provider' is set but blank"
when: doh_provider == ""

- name: get dpkg architecture
shell: |
dpkg --print-architecture
register: dpkg_arch

- name: add docker apt key
apt_key:
url: https://download.docker.com/linux/raspbian/gpg
state: present

- name: add docker apt repo
apt_repository:
repo: deb [arch=armhf] https://download.docker.com/linux/raspbian buster stable
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable"
state: present

- name: required packages
Expand Down

0 comments on commit 201114f

Please sign in to comment.