run apt-get update before install docker

This commit is contained in:
barryz 2021-09-18 12:23:05 +08:00
parent 9e006fffb3
commit f880903f37
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,9 @@
---
- name: Ensure apt cache is up-to-date.
apt:
update_cache: yes
- name: Ensure old versions of Docker are not installed.
package:
name: