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
|
||||
|
||||
- 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
|
||||
file: path=/var/www/html/index.nginx-debian.html state=absent
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
- php-opcache
|
||||
- php-imap
|
||||
- php-intl # intl
|
||||
- php-mcrypt
|
||||
#- php-mcrypt
|
||||
- php-smbclient
|
||||
- php-net-ftp
|
||||
- php-exif
|
||||
|
|
@ -37,16 +37,16 @@
|
|||
- reload nginx
|
||||
|
||||
- name: copy nginx php upstream
|
||||
copy:
|
||||
src: php-fpm/conf-php
|
||||
template:
|
||||
src: php-fpm/upstream-php.conf.j2
|
||||
dest: /etc/nginx/conf.d/php.conf
|
||||
notify:
|
||||
- reload nginx
|
||||
|
||||
- name: copy php-fpm config
|
||||
copy:
|
||||
dest: /etc/php/7.0/fpm/pool.d/www.conf
|
||||
src: php-fpm/www.conf
|
||||
template:
|
||||
dest: "/etc/php/{{ php_version }}/fpm/pool.d/www.conf"
|
||||
src: php-fpm/www.conf.j2
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart php-fpm
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
- name: copy php-fpm php.ini
|
||||
template:
|
||||
dest: /etc/php/7.0/fpm/php.ini
|
||||
dest: "/etc/php/{{ php_version }}/fpm/php.ini"
|
||||
src: php-fpm/php.ini.j2
|
||||
mode: 0644
|
||||
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;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = /run/php/php7.0-fpm.sock
|
||||
listen = /run/php/php{{ php_version }}-fpm.sock
|
||||
|
||||
; Set listen(2) backlog.
|
||||
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
php_version: "{% if ansible_distribution_release == 'stretch' %}7.0{% endif %}{% if ansible_distribution_release == 'buster' %}7.3{% endif %}"
|
||||
monitoring:
|
||||
checks:
|
||||
local:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue