don't check for apt updates if it's been done in the last hour
diff --git a/roles/common-prep/tasks/main.yml b/roles/common-prep/tasks/main.yml
index a7ffc3b..bf1c116 100644
--- a/roles/common-prep/tasks/main.yml
+++ b/roles/common-prep/tasks/main.yml
@@ -2,10 +2,13 @@
# file: roles/common-prep/tasks/main.yml
- name: Upgrade system to current using apt
- apt: update_cache=yes upgrade=dist
+ apt:
+ upgrade=dist
+ update_cache=yes
+ cache_valid_time=3600
notify:
- - restart machine
- - wait for machine
+ - restart host
+ - wait for host
- name: Install standard packages
apt: pkg={{ item }} state=present
diff --git a/roles/dell-virt/tasks/main.yml b/roles/dell-virt/tasks/main.yml
index 6771e95..cfc60a6 100644
--- a/roles/dell-virt/tasks/main.yml
+++ b/roles/dell-virt/tasks/main.yml
@@ -13,6 +13,7 @@
- name: Install BIOS configuration scripts
apt:
update_cache=yes
+ cache_valid_time=3600
name=dtk-scripts
# KVM virtualization is either "kvm_intel" or "kvm_amd" on amd64