geerlingguy / ansible-role-php

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

How to install multiple versions of PHP on Redhat 8 #381

Closed marketier closed 1 year ago

marketier commented 1 year ago

What syntax do I use to install multiple versions of PHP? Is the following correct?

---
- hosts: '{{inventory}}'
  become: true
  vars:
    php_version: '7.2'
  roles:
    - php_versions
    - php

- hosts: '{{inventory}}'
  become: true
  vars:
    php_version: '7.4'
  roles:
    - php_versions
    - php

Also, I'm seeing the following error after running the above:

"stderr": "Error: Problems in request:\nmissing groups or modules: php:remi-7.4"

Do I need to add the REMI to my repo first?

sudo dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm

Thanks for your help in advance.

stale[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.