NOTE: This project is deprecated and superseded by ECGALAXY components.
This Ansible playbook installs a working PHP development environment on Amazon Linux 2 WorkSpaces.
It currently provides:
- PHP 5.4 to 8.1 NTS (default: 7.4) and PHP-FPM
 - PHP OCI8 extension and Oracle Instant Client
 - Git
 - Apache 2.4
 - MariaDB 5.5
 - SQLite 3
 - Composer
 - PhpStorm (license not included)
 - Docker and Docker Compose
 
PHP packages are provided by Remi's RPM repository.
- If Ansible is not installed yet on the control machine, install it with:
sudo amazon-linux-extras install ansible2 - Update the 
php_versionandphp_fpm_portvalues inroles/common/defaults/main.ymlaccording to your needs. - If you want to install the environment on multiple workspaces, create a 
hostsfile listing your inventory. - If you want to install the environment on the local workspace only, you do not need to create a 
hostsfile; simply replacehostsbyhosts.localhostin the line below. - Execute the playbook: 
ansible-playbook -i hosts site.yml --ask-pass --ask-become-pass. - After execution of the playbook, you may need to log out then log in for the PhpStorm entry to appear in the Applications menu.
 - The playbook can be executed multiple times with different values, which means you can install and use different PHP versions on the same environment (for instance 7.4, 8.0 and 8.1), see 
module loadandmodule unloadcommands. 
You can remove 'roles' you do not need by editing the site.yml file.
You can also limit the playbook execution to a specific role by using its tag, for instance:
ansible-playbook -i hosts.localhost -t docker site.yml --ask-become-pass