2017-08-22 05:57:19 +02:00
|
|
|
---
|
2020-04-01 18:15:38 +02:00
|
|
|
- name: "Set default php.ini values for CLI"
|
2017-08-22 05:57:19 +02:00
|
|
|
ini_file:
|
2018-06-11 14:22:42 +02:00
|
|
|
dest: "{{ php_cli_defaults_ini_file }}"
|
2017-08-22 05:57:19 +02:00
|
|
|
section: PHP
|
|
|
|
option: "{{ item.option }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
mode: "0644"
|
|
|
|
create: yes
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2020-04-01 18:22:46 +02:00
|
|
|
- { option: "display_errors", value: "On" }
|
|
|
|
- { option: "allow_url_fopen", value: "On" }
|
|
|
|
- { option: "disable_functions", value: "" }
|
2017-08-22 05:57:19 +02:00
|
|
|
|
2020-04-01 18:22:46 +02:00
|
|
|
- name: Custom php.ini for CLI
|
2017-08-22 05:57:19 +02:00
|
|
|
copy:
|
2018-06-11 14:22:42 +02:00
|
|
|
dest: "{{ php_cli_custom_ini_file }}"
|
2017-08-22 05:57:19 +02:00
|
|
|
content: |
|
2017-09-12 10:41:47 +02:00
|
|
|
; Put customized values here.
|
2017-08-22 05:57:19 +02:00
|
|
|
force: no
|
2017-09-06 19:28:37 +02:00
|
|
|
|
2018-05-23 21:55:34 +02:00
|
|
|
# This task is not merged with the above copy
|
|
|
|
# because "force: no" prevents any fix after the fact
|
2020-04-01 18:15:38 +02:00
|
|
|
- name: "Permissions for custom php.ini for CLI"
|
2018-05-23 21:55:34 +02:00
|
|
|
file:
|
2018-06-11 14:22:42 +02:00
|
|
|
dest: "{{ php_cli_custom_ini_file }}"
|
2018-05-23 21:55:34 +02:00
|
|
|
mode: "0644"
|
|
|
|
|
2020-04-01 18:15:38 +02:00
|
|
|
- name: "Set custom values for PHP to enable Symfony"
|
2017-09-06 19:28:37 +02:00
|
|
|
ini_file:
|
2018-06-11 14:22:42 +02:00
|
|
|
dest: "{{ php_cli_custom_ini_file }}"
|
2017-09-06 19:28:37 +02:00
|
|
|
section: PHP
|
|
|
|
option: "{{ item.option }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
mode: "0644"
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2018-06-11 14:15:19 +02:00
|
|
|
- { option: "date.timezone", value: "Europe/Paris" }
|
2017-09-06 19:28:37 +02:00
|
|
|
when: php_symfony_requirements
|