Installs phpunit, the PHP Dependency Manager, on any Linux or UNIX system.
Heavily inspired of ansible-role-composer by Jeff Geerling
php
(version 5.4+) should be installed and working (you can use thegeerlingguy.php
role to install).git
should be installed and working (you can use thegeerlingguy.git
role to install).
Available variables are listed below, along with default values (see defaults/main.yml
):
phpunit_path: /usr/local/bin/phpunit
The path where phpunit will be installed and available to your system. Should be in your user's $PATH
so you can run commands simply with phpunit
instead of the full path.
php_executable: php
The executable name or full path to the PHP executable. This is defaulted to php
if you don't override the variable.
None (but make sure you've installed PHP; the geerlingguy.php
role is recommended).
- hosts: servers
roles:
- oktapodia.phpunit
After the playbook runs, phpunit
will be placed in /usr/local/bin/phpunit
(this location is configurable), and will be accessible via normal system accounts.
MIT / BSD
This role was created in 2017 by Sebastien BRAMILLE.