Tower CLI Cheatsheet

Basic installing and configuring

Installing with yum

yum install -y python2-ansible-tower-cli

Installing with pip

pip install ansible-tower-cli

Basic Configuration

tower-cli needs a minimum of 3 parameters to run: host, username, password.

Note
Whilst .tower_cli.cfg is an .ini tower-cli itself does not support profiles. In other words you cannoy issue a command such as tower-cli job list --profile=production. This
Sample tower_cli.cfg

+

[general]
verify_ssl = false
host = tower1.aadpoc.example.opentlc.com
username = admin
password = <YOUR_PASSWORD_HERE>

Job Control

List jobs

Resources

Tony Kay avatar
About Tony Kay
Team lead for Automation and Management in Red Hat's GPTE DevOps and Automation team. Working globally, I focus primarily on Hybrid Cloud Automation with Ansible. About 2/3rds of my time is automating production cloud deployments and developing both code and training content. I also deliver Automation training globally to both Red Hat and Partner Consultants and Architects on cloud infrastructure using Ansible and on OpenShift/Kubernetes.
comments powered by Disqus