diff --git a/roles/nginx/php-fpm/defaults/main.yml b/roles/nginx/php-fpm/defaults/main.yml index 6f1ec8c..a2ee24f 100644 --- a/roles/nginx/php-fpm/defaults/main.yml +++ b/roles/nginx/php-fpm/defaults/main.yml @@ -1,6 +1,6 @@ --- -php_version: "7.0" +php_version: "{{ (ansible_distribution_major_version >= '10') | ternary('7.3', '7.0') }}" phpfpm_package: "php{{ php_version }}-fpm" phpfpm_configuration_directory: "/etc/php/{{ php_version }}/fpm"