From ed607aab6893b3eea8d6a86b349849715ce1ea01 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 20 Mar 2018 22:42:39 +0200 Subject: [PATCH] roles/nginx: Use correct php-fpm socket on Ubuntu 18.04 --- roles/nginx/templates/vhost.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index cfdfdc4..b7d140e 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -66,6 +66,8 @@ server { {# As of Ubuntu 16.04 and Debian 9, the PHP-FPM configs are the same #} {% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version_compare('16.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_major_version is version_compare('9', '==')) %} fastcgi_pass unix:/run/php/php7.0-fpm-{{ domain_name }}.sock; + {% elif ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('18.04', '==') %} + fastcgi_pass unix:/run/php/php7.2-fpm-{{ domain_name }}.sock; {% else %} fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock; {% endif %}