ansible-role-composer¶
Installs Composer, the PHP Dependency Manager.
Role Defaults Variables¶
1 2 3 |
|
The path where composer will be installed and available to your system. Should be in your user's $PATH
so you can run
commands simply with composer
instead of the full path.
You can also setup a global composer directory and make the bin directory available in the $PATH
automatically by:
1 2 3 4 5 |
|
Auth.json¶
Github OAuth token¶
If your project use a lot of libraries from github, you may see next message during composer install
:
1 2 3 |
|
So your composer install
can get stuck.
To prevent that, you must configure github oauth token to go over the API rate limit. Visit https://github.com/settings/applications and generate personal access token and assign it to composer_github_oauth
variable.
1 |
|
HTTP Basic auth¶
You can provide HTTP Basic auth credentials to any repository like this:
1 2 3 4 |
|
Example Playbook¶
1 2 |
|
Tests¶
If you have vagrant, you can test this role:
1 2 3 |
|