Browse Source

Ubuntu - Ensure we have an updated apt cache

Jared Ledvina 8 years ago
parent
commit
4b19a0bb7d
1 changed files with 5 additions and 3 deletions
  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 }}"