Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ _php_fpm_directory:
Ubuntu-17: /etc/php/7.1/fpm
Ubuntu-18: /etc/php/7.2/fpm
Ubuntu-19: /etc/php/7.2/fpm
Ubuntu-22: /etc/php/8.1/fpm
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have "Ubuntu" use /etc/php/8.1/fpm, like so:

   Ubuntu-18: /etc/php/7.2/fpm
   Ubuntu-20: /etc/php/7.4/fpm 
   Ubuntu: /etc/php/8.1/fpm

That structure hopefully works a little longer...

Ubuntu: /etc/php/7.4/fpm

php_fpm_directory: "{{ _php_fpm_directory[ansible_distribution ~ '-' ~ ansible_distribution_major_version] | default(_php_fpm_directory[ansible_distribution] | default(_php_fpm_directory['default'] )) }}"
Expand Down Expand Up @@ -62,6 +63,7 @@ _php_fpm_service:
Ubuntu-17: php7.1-fpm.service
Ubuntu-18: php7.2-fpm.service
Ubuntu-19: php7.2-fpm.service
Ubuntu-22: php8.1-fpm.service
Ubuntu: php7.4-fpm.service

php_fpm_service: "{{ _php_fpm_service[ansible_distribution ~ '-' ~ ansible_distribution_major_version] | default(_php_fpm_service[ansible_distribution] | default(_php_fpm_service['default'] )) }}"
Expand Down