APT change status update:

- updating cache is not a change
- packages are 'present' (was latest) state
freebsd
Emilien Mantel 2016-12-08 17:38:10 +01:00
parent ef9242f2fb
commit 9111165a7c
1 changed files with 5 additions and 1 deletions

View File

@ -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 }}"