forked from evolix/ansible-roles
whitespaces
This commit is contained in:
parent
521b196ba3
commit
1b4ea6e859
|
@ -5,8 +5,8 @@
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php5-fpm
|
- php5-fpm
|
||||||
- php5
|
- php5
|
||||||
when: ansible_distribution_release == "jessie"
|
when: ansible_distribution_release == "jessie"
|
||||||
|
|
||||||
- name: "Install PHP FPM packages (Debian 9 or later)"
|
- name: "Install PHP FPM packages (Debian 9 or later)"
|
||||||
|
@ -14,8 +14,8 @@
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
- php
|
- php
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: "Set config files for FPM (jessie)"
|
- name: "Set config files for FPM (jessie)"
|
||||||
|
@ -43,12 +43,12 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
create: yes
|
create: yes
|
||||||
with_items:
|
with_items:
|
||||||
- { option: "short_open_tag", value: "Off" }
|
- { option: "short_open_tag", value: "Off" }
|
||||||
- { option: "expose_php", value: "Off" }
|
- { option: "expose_php", value: "Off" }
|
||||||
- { option: "display_errors", value: "Off" }
|
- { option: "display_errors", value: "Off" }
|
||||||
- { option: "log_errors", value: "On" }
|
- { option: "log_errors", value: "On" }
|
||||||
- { option: "html_errors", value: "Off" }
|
- { option: "html_errors", value: "Off" }
|
||||||
- { option: "allow_url_fopen", value: "Off" }
|
- { option: "allow_url_fopen", value: "Off" }
|
||||||
|
|
||||||
- name: Disable PHP functions for FPM
|
- name: Disable PHP functions for FPM
|
||||||
ini_file:
|
ini_file:
|
||||||
|
@ -73,15 +73,15 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
create: yes
|
create: yes
|
||||||
with_items:
|
with_items:
|
||||||
- { option: "pm", value: "ondemand" }
|
|
||||||
- { option: "pm.max_children", value: "100" }
|
|
||||||
- { option: "pm.process_idle_timeout", value: "10s" }
|
|
||||||
- { option: "slowlog", value: "log/$pool.log.slow" }
|
|
||||||
- { option: "request_slowlog_timeout", value: "5s" }
|
|
||||||
- { option: "pm.status_path", value: "/fpm_status" }
|
|
||||||
- { option: "request_terminate_timeout", value: "60s" }
|
|
||||||
- { option: "chroot", value: "/var/www/html" }
|
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
- { option: "pm", value: "ondemand" }
|
||||||
|
- { option: "pm.max_children", value: "100" }
|
||||||
|
- { option: "pm.process_idle_timeout", value: "10s" }
|
||||||
|
- { option: "slowlog", value: "log/$pool.log.slow" }
|
||||||
|
- { option: "request_slowlog_timeout", value: "5s" }
|
||||||
|
- { option: "pm.status_path", value: "/fpm_status" }
|
||||||
|
- { option: "request_terminate_timeout", value: "60s" }
|
||||||
|
- { option: "chroot", value: "/var/www/html" }
|
||||||
|
|
||||||
- name: Custom PHP FPM values
|
- name: Custom PHP FPM values
|
||||||
copy:
|
copy:
|
||||||
|
@ -99,6 +99,5 @@
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
with_items:
|
with_items:
|
||||||
- { option: "date.timezone", value: "Europe/Paris" }
|
- { option: "date.timezone", value: "Europe/Paris" }
|
||||||
when: php_symfony_requirements
|
when: php_symfony_requirements
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue