Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drunomics/ansible-role-drush
Ansible role that installs drush via composer.
https://github.com/drunomics/ansible-role-drush
Last synced: about 1 month ago
JSON representation
Ansible role that installs drush via composer.
- Host: GitHub
- URL: https://github.com/drunomics/ansible-role-drush
- Owner: drunomics
- Created: 2015-03-03T13:30:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T15:15:26.000Z (over 6 years ago)
- Last Synced: 2023-08-12T07:58:36.892Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible role drunomics.drush
[![Build Status](https://travis-ci.org/drunomics/ansible-role-drush.svg?branch=master)](https://travis-ci.org/drunomics/ansible-role-drush)Ansible role that installs drush via composer.
Distribution: Ubuntu
## Requirements
- PHP must be installed. This is not covered by this role.
## Dependencies
- kosssi.composer (Installs composer.)
## Usage
Note that this role can be used as root or on a per user basis by not specifying
become: yes on the playbook level.### System-wide installation
For a system wide installation, just add the role (as root) with the following vars:vars:
drush_add_system_launcher: true
composer_home_path: /opt/composerThis registers /opt/composer as root's composer path, which can be used for installing system-wide composer packages. In addition, it adds a small launcher script to a configurable bin directory, such that the `drush` command is available. Alternatively, composer bin directory may be added to the system $PATH variable.
### Per-user installation
To configure drush for a certain user, enable become at playbook level and specify the become_user as following:
roles:
- { role: drunomics.drush, tags: drush, become_user: drunomics }Afterwards the drush launcher is available at ~/.composer/vendor/bin/drush. For putting the launcher in the path, it's suggested to add the user's composer bin directory to the user's $PATH variable (not covered by this role).
## License
MIT License
(c) drunomics GmbH.