Amazon Linux 2 WorkSpace - PHP development environment - Ansible playbook
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 packages are provided by Remi’s RPM repository.
sudo amazon-linux-extras install ansible2
php_version
and php_fpm_port
values in roles/common/defaults/main.yml
according to your needs.hosts
file listing your inventory.hosts
file; simply replace hosts
by hosts.localhost
in the line below.ansible-playbook -i hosts site.yml --ask-pass --ask-become-pass
.module load
and module unload
commands.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