Explorar o código

Ubuntu - Ensure we have an updated apt cache

Jared Ledvina %!s(int64=8) %!d(string=hai) anos
pai
achega
4b19a0bb7d
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      tasks/Ubuntu/main.yml

+ 5 - 3
tasks/Ubuntu/main.yml

@@ -5,10 +5,12 @@
   - include_vars: "{{ ansible_distribution }}.yml"
 
   - name: Ensure that https transport is ready
-    apt: 
-      name: apt-transport-https 
+    apt:
+      name: apt-transport-https
       state: present
-    
+      cache_valid_time: 3600
+      update_cache: true
+
   - name: Ensure the Sensu APT repo GPG key is present
     apt_key:
       url: "{{ sensu_apt_key_url }}"