diff --git a/tasks/install.yaml b/tasks/install.yaml index 289520b..2d5f144 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -1,5 +1,4 @@ --- - # remove old docker.io packages - name: "remove old docker.io packages" ansible.builtin.apt: @@ -31,7 +30,7 @@ # add docker repository - name: "docker repository" ansible.builtin.apt_repository: - repo: + repo: "deb [arch={{ ansible_architecture }} signed-by=/etc/apt/keyrings/docker.asc] \ https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable" state: "present" @@ -42,6 +41,7 @@ ansible.builtin.apt: name: "{{ item }}" state: "present" + update_cache: true with_items: - "docker-ce" - "docker-ce-cli"