From 9111165a7c0565ccc3620e217e3a720ab52e7282 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 8 Dec 2016 17:38:10 +0100 Subject: [PATCH] APT change status update: - updating cache is not a change - packages are 'present' (was latest) state --- tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0365581..cead97b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,8 +7,12 @@ - name: INCLUDE_VARS | Related to PHP version include_vars: "php-{{ php_version }}.yml" +- name: APT | Update cache + apt: update_cache=yes cache_valid_time=3600 + changed_when: false + - name: APT | Install PHP packages - apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time=3600 + apt: pkg={{ item }} state=present with_flattened: - "{{ php_packages }}" - "{{ php_extra_packages }}"