Installs the Pantheon CLI using the official installer.
- PHP must be already installed on the server and a compatible version.
- The phar extension must be installed.
- Composer must be installed.
Available variables are listed below, along with default values (see defaults/main.yml).
pantheon_terminus_installer_url
The full URL to download the Terminus installer. Default: https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar
pantheon_terminus_install_dir
Specifies the installation directory for the terminus executable. Default: /usr/local/bin.
pantheon_terminus_operation
The installer operation to perform. Default: install
pantheon_terminus_bin_dir
The location of the system bin directory. Default: /usr/local/bin.
pantheon_terminus_version
The version of Terminus to install. Default is empty, instructing the installer to use the latest version.
pantheon_terminus_php_path
Specifies the path to the PHP executable. Default: php
None, but the following roles are recommended:
- geerlingguy.php
- geerlingguy.composer
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: socketwench.pantheon_terminus }
GPL v3
This role was created by socketwench.