diff --git a/roles/php_website/defaults/main.yml b/roles/php_website/defaults/main.yml index c56f66bbd2a58b040e14b478218e854c0de4faa2..06cdc595f15e05d252c5ffa7ac857a14592ddce9 100644 --- a/roles/php_website/defaults/main.yml +++ b/roles/php_website/defaults/main.yml @@ -12,9 +12,21 @@ website_mail_recipients: "root" environment_indicator: null # Internal parameters. +php_fpm_service_name_per_release: + stretch: "php7.0-fpm" + buster: "php7.3-fpm" + +php_fpm_binary_per_release: + stretch: "php-fpm7.0" + buster: "php-fpm7.3" + +php_fpm_pool_directory_per_release: + stretch: "/etc/php/7.0/fpm/pool.d" + buster: "/etc/php/7.3/fpm/pool.d" + admin: "admin-{{ fqdn | replace('.', '_') }}" user: "web-{{ fqdn | replace('.', '_') }}" home: "/var/www/{{ fqdn }}" -php_fpm_pool_directory: "/etc/php/7.0/fpm/pool.d" -php_fpm_binary: "php-fpm7.0" -php_fpm_service_name: "php7.0-fpm" +php_fpm_pool_directory: "{{ php_fpm_pool_directory_per_release[ansible_distribution_release] }}" +php_fpm_binary: "{{ php_fpm_binary_per_release[ansible_distribution_release] }}" +php_fpm_service_name: "{{ php_fpm_service_name_per_release[ansible_distribution_release] }}"