Skip to content
Snippets Groups Projects
Commit 9fc9fc02 authored by godog's avatar godog
Browse files

apt: shorten cache validity while upgrading

Force an update when switching distributions
parent 00e80039
No related branches found
No related tags found
1 merge request!96Buster fixes
Pipeline #6075 passed
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
- name: Run apt-get update - name: Run apt-get update
apt: apt:
update_cache: yes 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. # When testing, try to make dpkg faster by disabling fsync.
- name: Speed up dpkg - name: Speed up dpkg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment