Parcourir la source

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

Jeff Geerling il y a 10 ans
Parent
commit
fc88ba2570
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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.
   apt:
     pkg: nginx