Based on v7.0.0 of Jeff Geerling's PHP Versions Ansible role created in 2017 by Jeff Geerling, author of Ansible for DevOps.
Forked to make the purging action of other PHP versions an optional task, controllable via the boolean variable
keep_one_php_version_only , since Jeff wants to keep this purging behaviour in his role as is.
By default, keep_one_php_version_only is set to false; means this role won't purge other PHP versions already installed on the server.
Hence the name Cohabitat!
Available variables are listed below, along with default values (see defaults/main.yml):
php_version: '8.3'
keep_one_php_version_only: false
MIT / BSD
Available at Jeff Geerling's PHP Versions Ansible role repo