T2L.composer-global-packages
Ansible Role: Global Composer Packages
This role installs Composer packages that need to be available system-wide.
Requirements
Make sure that Composer
is installed and functioning.
Role Variables
Here are the available variables along with their default values (check defaults/main.yml
):
- Composer executable filename:
composer_filename: composer
Composer installs packages globally for the user that's running it (usually root). If you want to install packages for a different user, set this variable. By default, it uses the system's ansible_user_id
.
composer_username: ""
List of global packages to install: For each package you can specify:
- name: The package's name.
- version: (optional) The package's version. Defaults to "@stable".
composer_global_packages: []
Example (remember to remove the square brackets):
composer_global_packages:
- name: phpunit/phpunit
version: "4.7.x"
Dependencies
T2L.composer
Example Playbook
- hosts: all
roles:
- T2L.composer-global-packages
License
MIT
Author Information
This role was created in 2015 by Roman Paska.
Informazioni sul progetto
Install globally-required Composer packages.
Installa
ansible-galaxy install T2L.composer-global-packages
Licenza
mit
Download
353
Proprietario