Fork of unmaintained https://github.com/NBZ4live/ansible-role-composer with a fix for deprecated syntax
Find a file
2025-11-07 10:58:56 +02:00
defaults Add cache_valid_time to apt module 2015-01-14 13:18:24 +01:00
handlers Initial commit 2014-02-04 12:47:51 +01:00
meta Finish the installation and check tasks 2014-02-04 13:57:47 +01:00
tasks Update the Travis CI test 2015-01-14 13:24:27 +01:00
vars Move the packages var to the vars directory 2014-02-04 14:04:42 +01:00
.travis.yml Update the Travis CI test 2015-01-14 13:24:27 +01:00
README.md Update the README 2015-01-14 13:21:50 +01:00
test.yml Change deprecated include to include_tasks 2025-11-07 10:58:56 +02:00

Build Status

Composer

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

The role uses the following variables:

  • 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.

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

Dependencies

none

License

BSD

Author Information