fix missing replace for x86_64 > amd64

thanks to @shark4ce for taking the time to test, debug and offer a solution #1472.
This commit is contained in:
Marco Ochse 2024-02-06 13:45:12 +01:00 committed by GitHub
parent 2fe2d59129
commit bd4df39538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -277,7 +277,7 @@
- name: Add Docker Engine repository (Debian, Raspbian, Ubuntu) - name: Add Docker Engine repository (Debian, Raspbian, Ubuntu)
apt_repository: apt_repository:
filename: docker filename: docker
repo: "deb [arch={{ ansible_architecture | replace('aarch64', 'arm64') }} signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" repo: "deb [arch={{ ansible_architecture | replace('aarch64', 'arm64') | replace('x86_64', 'amd64') }} signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
state: present state: present
update_cache: yes update_cache: yes
when: ansible_distribution in ["Debian", "Raspbian", "Ubuntu"] when: ansible_distribution in ["Debian", "Raspbian", "Ubuntu"]