diff --git a/php/defaults/main.yml b/php/defaults/main.yml index 010b8d62..ca243024 100644 --- a/php/defaults/main.yml +++ b/php/defaults/main.yml @@ -2,3 +2,4 @@ php_fpm_enable: False php_apache_enable: False +php_symfony_requirements: False diff --git a/php/tasks/apache.yml b/php/tasks/apache.yml index 2059648b..32e79b4c 100644 --- a/php/tasks/apache.yml +++ b/php/tasks/apache.yml @@ -57,3 +57,14 @@ content: | # Put customized values here. force: no + +- name: "Set custom values for PHP to enable Symfony" + ini_file: + dest: "{{ php_apache_custom_file }}" + section: PHP + option: "{{ item.option }}" + value: "{{ item.value }}" + mode: "0644" + with_items: + - { option: "date.timezone", value: "Europe/Paris" } + when: php_symfony_requirements diff --git a/php/tasks/fpm.yml b/php/tasks/fpm.yml index 276a7181..b3971763 100644 --- a/php/tasks/fpm.yml +++ b/php/tasks/fpm.yml @@ -88,3 +88,14 @@ # Put customized values here. force: no +- name: "Set custom values for PHP to enable Symfony" + ini_file: + dest: "{{ phpini_cli_custom_file }}" + section: PHP + option: "{{ item.option }}" + value: "{{ item.value }}" + mode: "0644" + with_items: + - { option: "date.timezone", value: "Europe/Paris" } + when: php_symfony_requirements + diff --git a/php/tasks/php_jessie.yml b/php/tasks/php_jessie.yml index 46c7c973..661901a5 100644 --- a/php/tasks/php_jessie.yml +++ b/php/tasks/php_jessie.yml @@ -52,3 +52,15 @@ content: | # Put customized values here. force: no + +- name: "Set custom values for PHP to enable Symfony (jessie)" + ini_file: + dest: "{{ phpini_cli_custom_file }}" + section: PHP + option: "{{ item.option }}" + value: "{{ item.value }}" + mode: "0644" + with_items: + - { option: "date.timezone", value: "Europe/Paris" } + when: php_symfony_requirements + diff --git a/php/tasks/php_stretch.yml b/php/tasks/php_stretch.yml index 00ed327a..d8d81c11 100644 --- a/php/tasks/php_stretch.yml +++ b/php/tasks/php_stretch.yml @@ -53,3 +53,14 @@ content: | # Put customized values here. force: no + +- name: "Set custom values for PHP to enable Symfony (Debian 9 or later)" + ini_file: + dest: "{{ phpini_cli_custom_file }}" + section: PHP + option: "{{ item.option }}" + value: "{{ item.value }}" + mode: "0644" + with_items: + - { option: "date.timezone", value: "Europe/Paris" } + when: php_symfony_requirements