Add PHP 7.4 FPM support
This commit is contained in:
parent
20ab27e1d2
commit
a1f110c8bc
@ -70,6 +70,8 @@ server {
|
|||||||
fastcgi_pass unix:/run/php/php7.2-fpm-{{ domain_name }}.sock;
|
fastcgi_pass unix:/run/php/php7.2-fpm-{{ domain_name }}.sock;
|
||||||
{% elif ansible_distribution == 'Debian' and ansible_distribution_version is version('10', '==') %}
|
{% elif ansible_distribution == 'Debian' and ansible_distribution_version is version('10', '==') %}
|
||||||
fastcgi_pass unix:/run/php/php7.3-fpm-{{ domain_name }}.sock;
|
fastcgi_pass unix:/run/php/php7.3-fpm-{{ domain_name }}.sock;
|
||||||
|
{% elif ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==') %}
|
||||||
|
fastcgi_pass unix:/run/php/php7.4-fpm-{{ domain_name }}.sock;
|
||||||
{% else %}
|
{% else %}
|
||||||
fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock;
|
fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -11,4 +11,8 @@
|
|||||||
- name: reload php7.3-fpm
|
- name: reload php7.3-fpm
|
||||||
systemd: name=php7.3-fpm state=reloaded
|
systemd: name=php7.3-fpm state=reloaded
|
||||||
|
|
||||||
|
# For Ubuntu 20.04
|
||||||
|
- name: reload php7.4-fpm
|
||||||
|
systemd: name=php7.4-fpm state=reloaded
|
||||||
|
|
||||||
# vim: set ts=2 sw=2:
|
# vim: set ts=2 sw=2:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# Note: Debian 9's php-fpm config is identical to Ubuntu 16.04's, so for now we
|
# Note: Debian 9's php-fpm config is identical to Ubuntu 16.04's, so for now we
|
||||||
# can capitalize on that and use the same tasks. Ubuntu 18.04 uses php-fpm 7.2.
|
# can capitalize on that and use the same tasks. Ubuntu 18.04 uses php-fpm 7.2.
|
||||||
# Debian 10 uses php-fpm 7.3.
|
# Debian 10 uses php-fpm 7.3. Ubuntu 20.04 uses PHP 7.4.
|
||||||
|
|
||||||
- name: Configure php-fpm on Ubuntu 16.04 and Debian 9
|
- name: Configure php-fpm on Ubuntu 16.04 and Debian 9
|
||||||
include_tasks: Ubuntu.yml
|
include_tasks: Ubuntu.yml
|
||||||
@ -18,4 +18,9 @@
|
|||||||
when: ansible_distribution == 'Debian' and ansible_distribution_version is version('10', '==')
|
when: ansible_distribution == 'Debian' and ansible_distribution_version is version('10', '==')
|
||||||
tags: php-fpm
|
tags: php-fpm
|
||||||
|
|
||||||
|
- name: Configure php-fpm on Ubuntu 20.04
|
||||||
|
include_tasks: Ubuntu_20.04.yml
|
||||||
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')
|
||||||
|
tags: php-fpm
|
||||||
|
|
||||||
# vim: set ts=2 sw=2:
|
# vim: set ts=2 sw=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user