geerlingguy / ansible-role-php-versions

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

Support php version switch for existing setups #49

Closed mhitza closed 4 years ago

mhitza commented 4 years ago

I'd like to integrate the necessary steps to support PHP version upgrades for already provisioned systems; without dropping manually in a shell to do the setup.

The error message is helpful enough, that outside some additional checks, should be straightforward.

The operation would result in switching of module 'php' stream 'remi-7.3' to stream
'remi-7.4' Error: It is not possible to switch enabled streams of a module. It is
recommended to remove all installed content from the module, and reset the module
using 'dnf module reset <module_name>' command. After you reset the module, you
can install the other stream

If there's interest to support this functionality in this role, let me know and I'll work on it.

geerlingguy commented 4 years ago

It actually works (I believe) on Debian based systems. If it's a simple enough change to get it working on Red Hat based systems also, I would consider accepting the change.

stale[bot] commented 4 years 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.

stale[bot] commented 4 years 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.