feat: update cache when installing docker
This commit is contained in:
parent
986bfe1d22
commit
2da987544a
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue