Installs Drupal Console on any Linux or UNIX system.
curl
and php
(version 5.4+) should be installed and working.
Available variables are listed below, along with default values (see defaults/main.yml
):
drupal_console_path: /usr/local/bin/composer
The path where Drupal Console will be installed and available to your system. Should be in your user's $PATH
so you can use Drupal Console by entering drupal
instead of the full path.
drupal_console_keep_updated: true
By default, this role will always update Drupal Console to the latest version whenever it's run. If you'd like to change this behavior, switch this variable to false
.
- geerlingguy.php (Installs PHP).
- hosts: servers
roles:
- { role: geerlingguy.drupal-console }
After the playbook runs, drupal
will be placed in /usr/local/bin/drupal
(this location is configurable), and will be accessible via normal system accounts.
MIT / BSD
This role was created in 2015 by Jeff Geerling, author of Ansible for DevOps.