php: fix permissions on custom php.ini file

fixes #2433
This commit is contained in:
Jérémy Lecour 2018-05-23 21:55:34 +02:00
parent 7738de6f41
commit d3eb8b870c
2 changed files with 15 additions and 3 deletions

View File

@ -46,14 +46,20 @@
option: disable_functions
value: "exec,shell-exec,system,passthru,putenv,popen"
- name: Custom php.ini for CLI
- name: Custom php.ini for CLI (jessie)
copy:
dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
content: |
; Put customized values here.
force: no
# This task is not merged with the above copy
# because "force: no" prevents any fix after the fact
- name: "Permissions for custom php.ini for CLI (jessie)"
file:
dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
- name: "Set custom values for PHP to enable Symfony (jessie)"
ini_file:
dest: "{{ phpini_cli_custom_file }}"

View File

@ -50,12 +50,18 @@
- name: "Custom php.ini for CLI (Debian 9 or later)"
copy:
dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
content: |
; Put customized values here.
; default_charset = "ISO-8859-1"
force: no
# This task is not merged with the above copy
# because "force: no" prevents any fix after the fact
- name: "Permissions for custom php.ini for CLI (Debian 9 or later)"
file:
dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
- name: "Set custom values for PHP to enable Symfony (Debian 9 or later)"
ini_file:
dest: "{{ phpini_cli_custom_file }}"