From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using workflow

Using workflow

The workflow is a very nice and powerful feature in Ansible Tower. So what is a workflow? Well, a workflow template is used to run multiple job templates in a sequence. Using workflows makes it easier to work with playbooks, which are in a job template, that are provided from different teams. So you can easily create, well, a workflow. In a workflow, complex relations between jobs can be defined. And in these relations, the next job is started depending on the result of the previous job. And if the previous job failed, you can start an alternative job as well. So in a workflow, you will define on success or on failure or always to define the relations between job number one and job number two. Before creating a workflow, you do need to create a workflow template. And that is because workflows depend on the workflow templates, and the workflow templates is, well, the foundation. And after defining the workflow job template, the workflow visualizer is used to define the actual workflow.…

Contents