Ansible Role that installs and configure PHP 5.x on Debian/Ubuntu.
Use hash behavior for variables in ansible.cfg See example: https://github.com/Aplyca/ansible-role-php/blob/master/tests/ansible.cfg See official docs: http://docs.ansible.com/intro_configuration.html#hash-behaviour
Using ansible galaxy:
ansible-galaxy install Aplyca.PHP
You can add this role as a dependency for other roles, add the role to the meta/main.yml file of your own role:
dependencies:
- { role: Aplyca.PHP }
- PHP 5.6
- Install modules
- Composer
- OPCache
- Configure all PHP core and extensions settings
- Apache integration
See default variables: https://github.com/Aplyca/ansible-role-php/blob/master/defaults/main.yml
None.
Use Vagrant to test the role:
cd tests;
vagrant up;
MIT / BSD
Mauricio Sánchez from Aplyca SAS (http://www.aplyca.com)