2017-05-19 19:36:36 +02:00
|
|
|
---
|
|
|
|
- name: Include OS-specific variables.
|
2017-09-18 22:19:43 +02:00
|
|
|
include_vars: "{{ item }}"
|
|
|
|
with_fileglob:
|
2018-05-29 04:35:40 +02:00
|
|
|
- "{{ role_path }}/vars/{{ ansible_os_family }}.yml"
|
|
|
|
- "{{ role_path }}/vars/{{ ansible_os_family }}-php{{ php_version }}.yml"
|
2017-05-19 19:36:36 +02:00
|
|
|
|
2021-03-18 21:10:27 +01:00
|
|
|
- name: Remove missing JSON extension for PHP 8.0 (included by default)
|
2021-03-18 22:21:27 +01:00
|
|
|
set_fact:
|
|
|
|
__php_packages: "{{ __php_packages | reject('search','php' + php_version + '-json') | list }}"
|
2021-03-18 21:16:05 +01:00
|
|
|
when:
|
|
|
|
- __php_packages is defined
|
|
|
|
- php_version is version('8.0', '>=')
|
2021-03-18 21:10:27 +01:00
|
|
|
|
2017-05-31 19:19:47 +02:00
|
|
|
- name: Define PHP variables.
|
2019-11-01 16:24:19 +01:00
|
|
|
set_fact: "{{ item.key }}={{ lookup('vars', item.value) }}"
|
2017-05-31 19:19:47 +02:00
|
|
|
when:
|
2020-11-22 12:26:08 +01:00
|
|
|
- vars[item.key] is undefined
|
|
|
|
- vars[item.value] is defined
|
2017-05-31 19:19:47 +02:00
|
|
|
with_dict:
|
|
|
|
php_conf_paths: __php_conf_paths
|
|
|
|
php_extension_conf_paths: __php_extension_conf_paths
|
|
|
|
php_fpm_daemon: __php_fpm_daemon
|
|
|
|
php_fpm_conf_path: __php_fpm_conf_path
|
|
|
|
php_fpm_pool_conf_path: __php_fpm_pool_conf_path
|
|
|
|
php_mysql_package: __php_mysql_package
|
|
|
|
php_redis_package: __php_redis_package
|
|
|
|
php_memcached_package: __php_memcached_package
|
|
|
|
php_pgsql_package: __php_pgsql_package
|
|
|
|
php_tideways_module_path: __php_tideways_module_path
|
|
|
|
php_uploadprogress_module_path: __php_uploadprogress_module_path
|
|
|
|
php_xdebug_module_path: __php_xdebug_module_path
|
|
|
|
php_xhprof_module_path: __php_xhprof_module_path
|
|
|
|
php_packages: __php_packages
|
|
|
|
|
2018-05-10 03:52:06 +02:00
|
|
|
- name: Define php_install_recommends variable.
|
|
|
|
set_fact:
|
|
|
|
php_install_recommends: "{{ php_versions_install_recommends }}"
|
|
|
|
|
2017-05-19 19:36:36 +02:00
|
|
|
# Setup tasks.
|
2018-04-27 18:31:38 +02:00
|
|
|
- include_tasks: "setup-{{ ansible_os_family }}.yml"
|