T2L.composer
Ansible Role: Composer
This role installs Composer, which is a tool for managing PHP dependencies.
Requirements
Make sure PHP (version 5.3.2 or higher) is installed and functioning.
Role Variables
Here are the variables you can use, along with their default values (check defaults/main.yml for details):
Composer installation directory:
composer_install_dir: /usr/local/bin
Composer executable filename:
composer_filename: composer
To install a specific version of Composer: (Default is empty, meaning it will install the latest version. Note that this setting cannot be used together with
composer_keep_updated
. If you specify a version, it will override any update settings.)composer_version: ""
To keep Composer updated: (This will be used if you haven't set a specific Composer version.)
composer_keep_updated: false
PHP executable name:
composer_php_executable: php
Dependencies
This role doesn't have any specific dependencies, but make sure PHP is installed.
Example Playbook
Here's an example of how to use this role in a playbook:
- hosts: all
roles:
- T2L.composer
License
MIT License
Author Information
This role was created by Roman Paska between 2015 and 2021.
ansible-galaxy install T2L.composer