-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php 8.0 install error caused by php-json #57
Comments
I stumbled upon this issue when trying to use php-versions role in conjunction with the php role. I tried setting the variable I circumvent the problem by setting the php_packages between the roles execution: ---
- hosts: all
tasks:
- name: import php-versions role
import_role:
name: geerlingguy.php-versions
- name: "set php_packages fact to circumvent issue #57"
set_fact:
php_packages:
- php8.0
- name: import php installation role
import_role:
name: geerlingguy.php After that the installation proceeded. Maybe using hostvars is another way to make it work. I don't have a good proposal to fix. Perhaps the same pattern of the php version role can be used in the php-versions role and set php_packages to __php_packages only if it is not defined before. |
On a second thought, these are two different problems. One is php8.0-json on a Debian as reported (which release?) or Ubuntu Focal, which I'm using, system and the other is the usage of the two roles with the php_packages variable. |
Debian 9 |
I've also ran into this issue. Didn't find a way around except commenting the php-json line in the vars file. |
This was fixed today in PR #64 — thanks! |
Hi there, in debian 10 it is still failing: I've override php_version var with '7.4' |
@federicoaaguirre - What version of Ansible are you running? It looks like the version you're running is missing the |
Hi @geerlingguy thanks for your quick response.! I'm try it with 2.4.4 and also i've tried it with 2.9. |
Ansible 2.4 is extremely out of date (it's been out of support for a couple years). 2.9 or later should work perfectly fine though. If you can confirm that you have installed Ansible 2.9 and you're still getting that error, please consider opening a new bug report. |
@geerlingguy thansk again it works perfect with 2.9. |
Hi,
This line is problematic when installing php 8.0 on a Debian system :
ansible-role-php-versions/vars/Debian.yml
Line 34 in aa60a3d
php-json is packaged with php 8.0 by default, we get the error: Package 'php8.0-json' has no installation candidate
The text was updated successfully, but these errors were encountered: