mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
c4bd34bf81
Php_packages_extra fix
28 lines
907 B
YAML
28 lines
907 B
YAML
---
|
|
- name: Update apt cache.
|
|
apt: update_cache=yes cache_valid_time=86400
|
|
|
|
- name: Ensure PHP packages are installed.
|
|
apt:
|
|
name: "{{ php_packages + php_packages_extra }}"
|
|
state: "{{ php_packages_state }}"
|
|
install_recommends: "{{ php_install_recommends }}"
|
|
register: php_package_install
|
|
notify: restart webserver
|
|
|
|
- name: Delete APCu configuration file if this role will provide one.
|
|
file:
|
|
path: "{{ item }}/{{ php_apc_conf_filename }}"
|
|
state: absent
|
|
with_items: "{{ php_extension_conf_paths }}"
|
|
when: php_enable_apc and php_package_install.changed
|
|
notify: restart webserver
|
|
|
|
- name: Delete OpCache configuration file if this role will provide one.
|
|
file:
|
|
path: "{{ item }}/{{ php_opcache_conf_filename }}"
|
|
state: absent
|
|
with_items: "{{ php_extension_conf_paths }}"
|
|
when: php_opcache_enable | bool and php_package_install.changed
|
|
notify: restart webserver
|