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

@ -40,4 +40,4 @@ docker_daemon_options: {}
# proxy env, if defined, env vars https_proxy and http_proxy will be injected.
proxy_env:
http_proxy:
https_proxy:
https_proxy:

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: