mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-03-14 10:52:09 +07:00
APT change status update:
- updating cache is not a change - packages are 'present' (was latest) state
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user