From 4194f2f79eac16569f2c267797b2cd2641cd61dd Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 18 Jan 2024 15:32:56 +0100 Subject: [PATCH] added deb achitecture variable --- docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker.yml b/docker.yml index e93d5b6..abdba95 100644 --- a/docker.yml +++ b/docker.yml @@ -90,9 +90,13 @@ state: absent filename: docker + - name: Get DEB architecture + shell: dpkg --print-architecture + register: deb_architecture + - name: Add repository into list ansible.builtin.apt_repository: - repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/gpg-pub-docker.gpg] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" + repo: "deb [arch={{ deb_architecture.stdout }} signed-by=/usr/share/keyrings/gpg-pub-docker.gpg] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" state: present filename: docker