Role to install custom versions of PHP using phpenv and php-build.
- Ansible 1.8.4.
Sets the installation type, user
or system
.
phpenv_env: system
Sets the global php version, must be included in the versions to install.
phpenv_global: 5.6.29
List of versions to install.
phpenv_versions:
- 5.6.29
List of users to install to.
Ignored if phpenv_env is set to system
phpenv_users:
- vagrant
---
- hosts: all
roles:
- josemrb.phpenv
This project comes with a Vagrantfile, this is a fast and easy way to test changes to the role.
Launch the guest machine with the following command.
$ vagrant up
To run the provision again you can use:
$ vagrant provision
or you can run ansible directly.
$ ansible-playbook tests/test.yml -i tests/vagrant-inventory -k
Please check the documentation for more information on Vagrant.
Licensed under the MIT License. See the LICENSE file for details.