roles: minor fix to Debian version comparisons
This commit is contained in:
parent
67379fc2e4
commit
446d402778
@ -75,7 +75,7 @@ server {
|
|||||||
# See: https://httpoxy.org/
|
# See: https://httpoxy.org/
|
||||||
fastcgi_param HTTP_PROXY "";
|
fastcgi_param HTTP_PROXY "";
|
||||||
|
|
||||||
{% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_version is version('11', '==')) %}
|
{% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_major_version is version('11', '==')) %}
|
||||||
fastcgi_pass unix:/run/php/php7.4-fpm-{{ domain_name }}.sock;
|
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;
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
ansible.builtin.include_tasks: Ubuntu_20.04.yml
|
ansible.builtin.include_tasks: Ubuntu_20.04.yml
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_distribution_version is version('11', '==')
|
- ansible_distribution_major_version is version('11', '==')
|
||||||
- install_php == true
|
- install_php == true
|
||||||
tags: php-fpm
|
tags: php-fpm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user