geerlingguy / ansible-role-php

Ansible Role - PHP
https://galaxy.ansible.com/geerlingguy/php/
MIT License
496 stars 441 forks source link

Make the role compatible with Rocky linux #429

Closed SonOfWinter closed 2 days ago

SonOfWinter commented 2 weeks ago

The role does not currently work with systems from the Rocky Linux family.

cinnion commented 2 weeks ago

Odd... while I have not yet tested the install, I just used it to install PHP 7.4 on Rocky 9. Perhaps additional details as to what "does not currently work" means.

SonOfWinter commented 2 weeks ago

When I try to mount a Vm with Rocky (rockylinux/9), the problem occurs when :

- name: Include OS-specific variables.
  include_vars: "{{ ansible_os_family }}.yml"

Because the Rocky OS family is Rocky and the file rocky.yml doesn't exist

I do a pull request to add this file

racke commented 2 weeks ago

Which version of ansible-core do you use?

SonOfWinter commented 2 weeks ago

ansible 2.10.6 python 3.9.18

Is it possible that the version I'm using doesn't know Rocky linux?

racke commented 2 weeks ago

Yes, that is really likely. Ansible 2.10 is EOL since 23 May 2022.

SonOfWinter commented 2 days ago

I updated it and now everything works correctly. Thank you for your help