Team,
I have a list of 10 small playbooks and i need to create a master bigger workflow template so that it can carry out a bigger task in a sequential format. Need your inputs how shall i create that and inbetween each execution how to add some kind of sleep or timeout values etc.
Thanks for insights team.
best regards
VJ
Hello VJ,
When creating a new node in a workflow a new functionality “Approval” is introduced in AWX v7.0.0. Using this functionality you can add a pause inbetween each playbook execution. The pause has a timeout value associated within which the execution of next job is to be approved. if not approved and timeout is reached the workflow execution will fail. The default timeout value is never expires. A new notification icon is there to approve the pause.
Below are the steps:
First you have to create Job templates for your playbooks.
To add timeout in workflow inbetween follow these steps:
- Click Templates in the left navigation bar to access the Template management interface.
- Click the + button and select Workflow Template.
- Enter a unique name for the Workflow Job Template in the NAME field. Optionally enter any desired key-value pairs in the EXTRA VARIABLES field.
- Click SAVE to create the Workflow Job Template. After a Workflow Job Template has been created, you can use the Workflow Visualizer to define an associated workflow.
- Click START to initiate the workflow editing process; the Workflow Visualizer displays a list of AWX resources.
- You can select the template resource from the dropdown, and then click SELECT to add an AWX resource as the node in the workflow.
- Select the first template box and click on “+” to add the timeout,
i) Select approval from the resource dropdown.
ii) Enter a unique name for approval.
iii) Enter the desired timeout value.
iv) configure the condition (you will see three conditions (Always, on success, on failure) in run dropdown)
v) Click on Select
- Select the approval box and click on “+” to add the second job template, select the desired job template and configure the condition.
- Save the workflow template and then launch.
Thanks & Regards
Soniya