support php7.3 and buster
This commit is contained in:
parent
773f2339e8
commit
6d652e56a9
6 changed files with 17 additions and 14 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
upstream php-handler {
|
|
||||||
server unix:/var/run/php/php7.0-fpm.sock;
|
|
||||||
}
|
|
||||||
|
|
@ -6,7 +6,9 @@
|
||||||
service: name=nginx state=reloaded
|
service: name=nginx state=reloaded
|
||||||
|
|
||||||
- name: restart php-fpm
|
- name: restart php-fpm
|
||||||
service: name=php7.0-fpm state=restarted
|
service:
|
||||||
|
name: "php{{ php_version }}-fpm"
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: delete nginx index.nginx-debian.html
|
- name: delete nginx index.nginx-debian.html
|
||||||
file: path=/var/www/html/index.nginx-debian.html state=absent
|
file: path=/var/www/html/index.nginx-debian.html state=absent
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
- php-opcache
|
- php-opcache
|
||||||
- php-imap
|
- php-imap
|
||||||
- php-intl # intl
|
- php-intl # intl
|
||||||
- php-mcrypt
|
#- php-mcrypt
|
||||||
- php-smbclient
|
- php-smbclient
|
||||||
- php-net-ftp
|
- php-net-ftp
|
||||||
- php-exif
|
- php-exif
|
||||||
|
|
@ -37,16 +37,16 @@
|
||||||
- reload nginx
|
- reload nginx
|
||||||
|
|
||||||
- name: copy nginx php upstream
|
- name: copy nginx php upstream
|
||||||
copy:
|
template:
|
||||||
src: php-fpm/conf-php
|
src: php-fpm/upstream-php.conf.j2
|
||||||
dest: /etc/nginx/conf.d/php.conf
|
dest: /etc/nginx/conf.d/php.conf
|
||||||
notify:
|
notify:
|
||||||
- reload nginx
|
- reload nginx
|
||||||
|
|
||||||
- name: copy php-fpm config
|
- name: copy php-fpm config
|
||||||
copy:
|
template:
|
||||||
dest: /etc/php/7.0/fpm/pool.d/www.conf
|
dest: "/etc/php/{{ php_version }}/fpm/pool.d/www.conf"
|
||||||
src: php-fpm/www.conf
|
src: php-fpm/www.conf.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- restart php-fpm
|
- restart php-fpm
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
- name: copy php-fpm php.ini
|
- name: copy php-fpm php.ini
|
||||||
template:
|
template:
|
||||||
dest: /etc/php/7.0/fpm/php.ini
|
dest: "/etc/php/{{ php_version }}/fpm/php.ini"
|
||||||
src: php-fpm/php.ini.j2
|
src: php-fpm/php.ini.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
|
|
|
||||||
3
templates/php-fpm/upstream-php.conf.j2
Normal file
3
templates/php-fpm/upstream-php.conf.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
upstream php-handler {
|
||||||
|
server unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
||||||
|
}
|
||||||
|
|
@ -33,7 +33,7 @@ group = www-data
|
||||||
; (IPv6 and IPv4-mapped) on a specific port;
|
; (IPv6 and IPv4-mapped) on a specific port;
|
||||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||||
; Note: This value is mandatory.
|
; Note: This value is mandatory.
|
||||||
listen = /run/php/php7.0-fpm.sock
|
listen = /run/php/php{{ php_version }}-fpm.sock
|
||||||
|
|
||||||
; Set listen(2) backlog.
|
; Set listen(2) backlog.
|
||||||
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
|
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
|
||||||
|
|
@ -306,12 +306,12 @@ pm.max_spare_servers = 3
|
||||||
; it can accept a strftime(3) format:
|
; it can accept a strftime(3) format:
|
||||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
||||||
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
||||||
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
; e.g. for a ISO8601 formatted timestring, use: %{ %Y-%m-%dT%H:%M:%S%z }t
|
||||||
; %T: time the log has been written (the request has finished)
|
; %T: time the log has been written (the request has finished)
|
||||||
; it can accept a strftime(3) format:
|
; it can accept a strftime(3) format:
|
||||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
||||||
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
||||||
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
; e.g. for a ISO8601 formatted timestring, use: %{ %Y-%m-%dT%H:%M:%S%z }t
|
||||||
; %u: remote user
|
; %u: remote user
|
||||||
;
|
;
|
||||||
; Default: "%R - %u %t \"%m %r\" %s"
|
; Default: "%R - %u %t \"%m %r\" %s"
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
php_version: "{% if ansible_distribution_release == 'stretch' %}7.0{% endif %}{% if ansible_distribution_release == 'buster' %}7.3{% endif %}"
|
||||||
monitoring:
|
monitoring:
|
||||||
checks:
|
checks:
|
||||||
local:
|
local:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue