1 min read

Automate Ansible Tower cli

I’ve used Ansible for years, but only started using their web-front end, Tower more recently. (Note, the upstream code was open-sourced last year, and it’s worth checking out, they call it AWX) So while I’m never a big fan of UI tools, Tower has proven quite helpful in allowing other teams access to deploying to their own dev servers from my Ansible code. There also have a cli tool to control Tower called (suprise) tower-cli that allows you to interact with Tower’s API. While it’s helpful, it’s lacking a few features, so I worked up a wrapper script to handle my workflow. Here’s the gist, with docs on how to install tower-cli, and run the tool. Give me some feedback if you have questions, of find it helpful.