How to add multiple conditions for an ansible task? Here are some of the examples which will help you to pick the right one according to your need. Ansible is an open-source market-leading configuration management tool. It’s a complete automation tool that can be used from On-premise to cloud platforms. In some cases, ansible is […]
Ansible Tower
How to update the Ansible Tower Inventory using API?
Ansible Tower offers various REST API to integrate with other tools. I had come across the scenario where the playbook needs to update tower inventory after provisioning cloud instance. tower-cli is one of the methods to update/import inventory on ansible tower but at the time of writing this article, tower-cli is not supported by Red […]
Ansible Tower License expired? How to renew it?
Ansible tower requires a valid license to run any job. Red Hat License management is much easier if you directly manage from the Red Hat subscription portal. But in some cases, you might receive the license from Red Hat sales execute to renew/extended the licenses. This article will cover both scenarios to extend expired licenses. […]
Backup/Restore – Ansible AWX – tower-cli
How to Backup Ansible AWX? Ansible Tower comes along with “setup.sh“ to backup the database. If you are using the AWX (Ansible Tower’s upstream project), you could leverage tower-cli to take the object backups in the JSON format. You could also try this for Ansible Tower if the number of hosts are less than 100. […]
Ansible Tower / AWX – Installing & Configuring Tower-cli
Tower-CLI (tower-cli) is a command line tool for managing Ansible Tower/AWX. It allows Tower commands to be easily run from the Unix/Linux command line. This command line tool sends commands to the Tower RESTful API. It is capable of retrieving, creating, modifying, and deleting most resources within the Tower. It also used for creating objects […]
Ansible Tower / AWX – Trigger Ansible Job using REST API
Ansible AWX / Ansible Tower supports RESTfull API calls. It provides greater flexibility that you no need to be in Ansible Tower/AWX console to start the template or read the ansible job results. You could post the API from anywhere. It could be a web portal or from your laptop using POSTMAN/SoapUI. This article will […]
Ansible Tower / AWX – Passing Variables using SURVEY (extra-vars)
Ansible Tower’s Survey one of the cool feature which can be used to populate the variables every time the Template is executed. Ansible playbook might contain one more user variable depends on the use cases. If you want to attach such playbook in AWX / Ansible Tower template, you need to pass the variables in […]
Ansible Tower / AWX – Creating SCM Git Project in Ansible
Ansible playbooks and roles must be kept in the Git repositories. Git provides a great mechanism to track the changes in the source code (i.e Playbooks). It also allows playbook developers to create a new branch and work on the codes without impacting the production. Ansible offers an option to pull the new codes on […]
Ansible Tower / AWX – Creating Workflow Template
Ansible workflow combines one or more resources links together in a sequence of disparate resources with conditional job results. This allows us to create a template for each task and combine in one workflow based on the results. The following resource could co-exist in workflows. inventory source syncs job templates project syncs workflow templates This […]
Ansible Tower / AWX – Configuring Role Based Access (RBAC)
Ansible Tower/ AWX offers role-based access control for templates and workflows. It provides an option to define what kind of access needs to be given to a specific team or specific member within the organization. To automate each task, you need to create a template in Ansible Tower/ AWX. In some cases, we might create […]









