From 26a50945c5f9227b3225b6af6d9cc6a53821cbb1 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Tue, 9 Feb 2016 18:36:48 +0100 Subject: [PATCH] Split apt update cache (fix install when cache is outdated) --- tasks/install.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index d956de2..1f814c6 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,11 +1,14 @@ --- +- name: APT | Update cache + apt: > + update_cache=yes + cache_valid_time=3600 + - name: APT | Install nginx and dependencies apt: > pkg={{ nginx_apt_package }} state=present - update_cache=yes - cache_valid_time=3600 default_release={{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }} - name: APT | Install python-passlib