This role will assume the setup of composer
It's part of the ELAO Ansible stack but can be used as a stand alone component.
- Ansible 1.7.2+
This role requires php-cli >=5.3.2. You can use elao.php role.
Using ansible galaxy cli:
ansible-galaxy install elao.composer,2.0
Using ansible galaxy requirements file:
- src: elao.composer
version: 2.0
Using ansible galaxy cli:
ansible-galaxy install elao.composer,1.0
Using ansible galaxy requirements file:
- src: elao.composer
version: 1.0
None.
Name | Default | Type | Description |
---|---|---|---|
elao_composer_bin |
/usr/local/bin/composer | String | Composer bin path. |
elao_composer_home |
~/.composer | String | Composer home path. |
elao_composer_config_auth |
{ } | Array | Composer auth config. |
Name | Default | Type | Description |
---|---|---|---|
elao_composer_config.auth |
Emptycollection | Collection | Definition of composer authentication. |
elao_composer_config:
auth:
github-oauth:
github.com: <your-github-token>
elao_composer_home: /home/vagrant/.composer
elao_composer_packages:
- name: phpunit/phpunit
version: '@stable'
bin_dir: /usr/local/bin
- name: squizlabs/php_codesniffer
version: '@stable'
bin_dir: /usr/local/bin
- hosts: servers
roles:
- { role: elao.composer }
MIT