Explorar o código

Fixes #24: Update apt cache if it hasn't been updated in a day.

Jeff Geerling %!s(int64=10) %!d(string=hai) anos
pai
achega
fc88ba2570
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      tasks/setup-Debian.yml

+ 3 - 0
tasks/setup-Debian.yml

@@ -1,4 +1,7 @@
 ---
 ---
+- name: Update apt cache.
+  apt: update_cache=yes cache_valid_time=86400
+
 - name: Ensure nginx is installed.
 - name: Ensure nginx is installed.
   apt:
   apt:
     pkg: nginx
     pkg: nginx