Closed justas147 closed 2 years ago
Which distribution do you use on the target host?
Which distribution do you use on the target host?
Ubuntu 20
It is also happening to me in Ubuntu 18. My variable sets the version to 8.0 and a few days ago it was installing 8.0.14 and now is installing 8.1.2. Any idea to solve that?
I included a task to set the default php version after:
- name: Select default php version
become: true
alternatives:
name: php
path: "/usr/bin/php{{ php_default_version_debian }}"
This is also happening to me on my servers, and in some other projects, e.g.:
It looks like the issue may be that php-apcu
needs to actually become php{{ php_default_version_debian }}-apcu
at least on Debian 11 or other recent OS releases...
Looks like also maybe php-sqlite3
is a problem.
Also noting that the command to revert to a known good PHP version on an existing server is:
sudo update-alternatives --set php /usr/bin/php7.4
(if you don't want to automate it in the playbook... replace the PHP version number with the one you have installed).
When I set
php_default_version_debian
variable to install version7.3
php 8.1 is also installed and gets set as the main version for php command. Does this suppose to happen or have I missed something?