From f880903f37396d8d8a4be560f12efe60b261d88a Mon Sep 17 00:00:00 2001 From: barryz Date: Sat, 18 Sep 2021 12:23:05 +0800 Subject: [PATCH] run apt-get update before install docker --- defaults/main.yml | 2 +- tasks/setup-Debian.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3f21f53..cc22775 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: \ No newline at end of file + https_proxy: diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index cb1645b..1defa87 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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: