From a15f8b5a0d65395b9b4a9b130b85b784641bb50f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 19 Jun 2017 14:45:35 +0200 Subject: [PATCH] library/roles/R/tasks/r-installation.yml: Do not update the apt cache if it's already up to date. --- R/tasks/r-installation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index c87ec14..5d5b79b 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -38,7 +38,7 @@ tags: [ 'r_software', 'r_profile', 'r_pkg' ] - name: Install some packages needed by R packages when installed from source - apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes + apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes cache_valid_time=3600 with_items: '{{ r_distribution_required_packages | default([]) }}' tags: [ 'r_software', 'r_pkg', 'r_deps' ]