php.ini custom file permissions

Thanks to root's umask, the copied file doesn't ave the proper
permissions :
0600 (actual) instead of 0644 (expected)
This commit is contained in:
Jérémy Lecour 2017-11-28 15:17:36 +01:00 committed by Jérémy Lecour
parent 33c4d54edc
commit 635aa5f8a1
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@
- name: Custom php.ini for CLI - name: Custom php.ini for CLI
copy: copy:
dest: "{{ phpini_cli_custom_file }}" dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
content: | content: |
; Put customized values here. ; Put customized values here.
force: no force: no
@ -62,4 +63,3 @@
with_items: with_items:
- { option: "date.timezone", value: "Europe/Paris" } - { option: "date.timezone", value: "Europe/Paris" }
when: php_symfony_requirements when: php_symfony_requirements

View file

@ -49,6 +49,7 @@
- name: "Custom php.ini for CLI (Debian 9 or later)" - name: "Custom php.ini for CLI (Debian 9 or later)"
copy: copy:
dest: "{{ phpini_cli_custom_file }}" dest: "{{ phpini_cli_custom_file }}"
mode: "0644"
content: | content: |
; Put customized values here. ; Put customized values here.
; default_charset = "ISO-8859-1" ; default_charset = "ISO-8859-1"