Feature - Trigger Ansible workflow template #4 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes issue #4 - Plugin is not working to launch workflow template jobs
The proposed code change provides the capability the capability to trigger a workflow template job on Ansible Tower.
This allows to run more complex automation job based on multiple templates.
There is no additional dependencies required for this change.
The synthetic.xml file has been modified to include a check box for "isTemplateWorkflow" described as "If job template is a workflow, tick this option."
This will provide a condition for a code perspective to use the appropriate tower_cli API construct.
Note that due to the nature of an Ansible Tower Workflow, the output of the actual play(s) will not be gathered as Ansible Tower will triggered multiple children jobs for each part of the Workflow elements.
This code change will not stdout the logs of all the children jobs to the Release run logs.
However, the code change will track the status of the Workflow job to ensure proper status is reported.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Test Configuration:
This has been tested within a real deployment scenario with success.
See attached logs.
Checklist:
Template and Workflow tests.xlsx
script_output_20200428004027.log
script_output_20200428004044.log
launchJobTemplate.json.txt
launchJobWorkflowTemplate.json.txt