From 201114f921f3578e80fa849a29e793d63302a04e Mon Sep 17 00:00:00 2001 From: chadgeary Date: Wed, 2 Feb 2022 21:15:30 -0500 Subject: [PATCH] infer buster/bullseye for raspbian via facts --- playbooks/cloudblock_raspbian.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playbooks/cloudblock_raspbian.yml b/playbooks/cloudblock_raspbian.yml index 5c38de8..f2f87ce 100644 --- a/playbooks/cloudblock_raspbian.yml +++ b/playbooks/cloudblock_raspbian.yml @@ -16,6 +16,11 @@ 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 @@ -23,7 +28,7 @@ - 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