geerlingguy / ansible-role-php-versions

Ansible Role - PHP Versions
https://galaxy.ansible.com/geerlingguy/php-versions/
MIT License
98 stars 73 forks source link

keep php versions already installed #85

Closed MaxiReglisse closed 1 year ago

MaxiReglisse commented 1 year ago

Hello Jeff,

thanks for all the roles you've created, it's a pleasure to use them.

I'd like to use several versions of PHP on the same server. But by default, this role deletes the versions already installed to keep only one (the one defined in the php_version variable of our playbook). See the "Purge PHP version packages" task in setup-Debian.yml.

Could you add a variable to prevent this purge?

Thanks in advance,

Ernest.

geerlingguy commented 1 year ago

This role is more meant for cases like containers or single-purpose servers where you would only run one version. I would rather not support other use cases, as it can cause some weird issues.

MaxiReglisse commented 1 year ago

ok, I understand, thanks for the quick response.