diff --git a/docker.yml b/docker.yml index d33ee5d..f06a1db 100644 --- a/docker.yml +++ b/docker.yml @@ -76,13 +76,13 @@ # url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg" # state: present - - name: Add repository into sources list + - name: Remove old repository from sources if exists ansible.builtin.apt_repository: repo: "deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" state: absent filename: docker - - name: Add repository into sources list + - 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" state: present