josemrb.phpenv
Ansible Role: phpenv
Role to install custom versions of PHP using phpenv and php-build.
Requirements
- Ansible 1.8.4.
Dependencies
Variables
phpenv_env
Sets the installation type, user or system.
phpenv_env: system
phpenv_global
Sets the global php version, must be included in the versions to install.
phpenv_global: 5.6.29
phpenv_versions
List of versions to install.
phpenv_versions:
- 5.6.29
phpenv_users
List of users to install to.
Ignored if phpenv_env is set to system
phpenv_users:
- vagrant
Example
---
- hosts: all
roles:
- josemrb.phpenv
Testing
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.
License
Licensed under the MIT License. See the LICENSE file for details.
Contributors
Install
ansible-galaxy install josemrb.phpenvLicense
mit
Downloads
83
Owner
