Commit 9fc9fc02 authored by godog's avatar godog

apt: shorten cache validity while upgrading

Force an update when switching distributions
parent 00e80039
Pipeline #6075 passed with stage
in 5 minutes and 13 seconds
......@@ -46,7 +46,7 @@
- name: Run apt-get update
apt:
update_cache: yes
cache_valid_time: 1800
cache_valid_time: '{{ 1800 if ansible_distribution_release == float_debian_dist else 1 }}'
# When testing, try to make dpkg faster by disabling fsync.
- name: Speed up dpkg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment