Skip to content

Commit

Permalink
Merge pull request #35 from adborden/patch-1
Browse files Browse the repository at this point in the history
Only update apt cache when it is stale
  • Loading branch information
Maxim Avanov authored Mar 18, 2019
2 parents b71c95c + a507163 commit a94545f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- name: Ensure apt cache is up to date
apt:
update_cache: yes
cache_valid_time: "{{ 48 * 60 * 60 }}" # consider the cache to be valid within 48 hours
become: true

- name: Install development packages necessary for building Python
Expand Down

0 comments on commit a94545f

Please sign in to comment.