Suppose you have a workflow set up in Red Hat Ansible Tower with several steps and needed another user to view and approve some or all of the nodes in the workflow.  Or maybe a job is running inside of a workflow but it should be viewed and approved within a HOW TO ADD APPROVAL STEPS specific time limit, or else get canceled automatically?  Perhaps it would be useful to be able to see how a job failed before something like a cleanup task gets set off?  It is now possible to insert a step in between any job template or workflow within that workflow in order to achieve these objectives.

 

Table of Contents

A New Feature for Better Oversight and More User Input

How to Add Approval Nodes to Workflows

What Happens When Something Needs Approval?

Approval Notifications

Timeouts

Approval-Specific Role-Based Access Controls

Summary

Where to Go Next

 

A New Feature for Better Oversight and More User Input

The Workflow HOW TO ADD APPROVAL STEPS Approval Node feature has been available in Ansible Tower since the release of version 3.6.0 on November 13, 2019.  In order to visually compare the additional functionality, examine the before and after examples of a workflow job template below:

BEFORE

After you click Select, HOW TO ADD APPROVAL STEPS you can add other nodes to the one you just created — whether they are job templates, project/inventory syncs, or more approval nodes — and build up your workflow the same way prior to this feature becoming an option.

What Happens When Something Needs Approval?

When an approval nodeHOW TO ADD APPROVAL STEPS needs attention, a bell icon on the top right corner of the screen (newly added for this feature!) will show a number next to it, indicating how many approval nodes are in need of attention:

Approval Notifications

Another way to be alerted to when an approval node needs review is for notifications to be set on the Approval level.  There is now a new toggle in the UI (Templates > Workflow > Notifications) where you can set a notification template to ping you whenever an approval node needs attention: