Create AWX workflow
Ansible really hits its mark with AWX workflows. With AWX workflows you create a template that anyone can run(given the right permissions) at any time. Developers can login into AWX and spin up brand new docker containers with the click of a button. System administrators can run multiple services on multiple different devices with the click of a button. Network administrators can clear Port-Security on all switches with the click of a button. In this How-To I will show you how to create a template for one of your playbooks in your projects.
Instructions
Follow these instructions to create a simple job template.
First let’s create an inventory sourced from one of our projects.
Click on Inventory > Create Inventory
Now fill in the following info into your blank inventory.
Click save. Once you have clicked save, click on the Source tab. Here you will input your inventory folder from you Ansible repository.
The inventory file space should only have one option. AWX should automatically look and know your inventory files. Now click save.
Now let’s go create a template!
Click on “Job Template” And fill out the following information.
Now click save. To run this template/job click on the templates tab. Then click the “rocketship” button and hit run!
Related articles
Related Links | |
The guide I followed to setup my AWX. | |
Free GIT training. | |
The Ansible Project’s official tower guide. | |
The AWX GIT repository. |
Last updated