2014-02-04 14:10:49 +01:00
|
|
|
[](https://travis-ci.org/NBZ4live/ansible-role-composer)
|
|
|
|
|
|
|
|
|
|
Composer
|
2014-02-04 12:47:51 +01:00
|
|
|
========
|
|
|
|
|
|
|
|
|
|
This role installs Composer from https://getcomposer.org
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
This role requires Ansible 1.2 or higher and platform requirements are listed in the metadata file.
|
|
|
|
|
|
|
|
|
|
Role Variables
|
|
|
|
|
--------------
|
|
|
|
|
|
2015-01-14 13:21:50 +01:00
|
|
|
The role uses the following variables:
|
2014-02-04 14:05:10 +01:00
|
|
|
|
2015-01-14 13:21:50 +01:00
|
|
|
- **composer_download_url**: Defines the download url of the composer.phar.
|
|
|
|
|
Defaults to ```https://getcomposer.org/composer.phar```.
|
|
|
|
|
- **composer_download_force**: Forces the download on every run.
|
|
|
|
|
Defaults to ```no```.
|
2014-02-04 14:05:10 +01:00
|
|
|
|
2015-01-14 13:21:50 +01:00
|
|
|
Global Variables
|
|
|
|
|
--------------
|
|
|
|
|
This variables are without a namespace to be used across the entire playbook
|
|
|
|
|
- **apt_cache_valid_time**: Used for ```cache_valid_time``` in the apt module.
|
|
|
|
|
Defaults to ```86400```
|
|
|
|
|
|
|
|
|
|
Example usage
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
# file: task.yml
|
|
|
|
|
- hosts: all
|
|
|
|
|
roles:
|
|
|
|
|
- nbz4live.composer
|
2014-02-04 12:47:51 +01:00
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
none
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
BSD
|
|
|
|
|
|
|
|
|
|
Author Information
|
|
|
|
|
------------------
|
|
|
|
|
|
2015-01-14 13:21:50 +01:00
|
|
|
- Sergey Fayngold <sergey@faynhost.com>
|