socketwench.pantheon_terminus
Ansible Role: Pantheon Terminus
This role installs the Pantheon Command Line Interface (CLI) using the official installer.
Requirements
- PHP must already be installed on the server and it should be a compatible version.
- The phar extension must be enabled.
- Composer must be installed.
Role Variables
Here are the variables you can use, along with their default values (see defaults/main.yml
for more info).
Installer URL
pantheon_terminus_installer_url
This is the URL to download the Terminus installer. The default is: https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar
Installer Options
pantheon_terminus_install_dir
This sets the directory where the terminus
executable will be installed. The default is /usr/local/bin
.
pantheon_terminus_operation
This indicates the action to perform during installation. The default is install
.
pantheon_terminus_bin_dir
This specifies the system bin directory location. The default is /usr/local/bin
.
pantheon_terminus_version
This sets the version of Terminus to install. If left empty, the installer will use the latest version.
PHP Executable
pantheon_terminus_php_path
This is the path to the PHP executable. The default is php
.
Dependencies
There are no required dependencies, but the following roles are suggested:
- geerlingguy.php
- geerlingguy.composer
Example Playbook
Here’s a simple example of how to use this role (including how to pass variables):
- hosts: servers
roles:
- { role: socketwench.pantheon_terminus }
License
GPL v3
Author Information
This role was created by socketwench.
Installs the Pantheon CLI using the official installer
ansible-galaxy install socketwench.pantheon_terminus