Add an option to override the job type at the workflow level (issue #14180)
SUMMARY
Fixes 14180 issue.
This PR introduces a feature that allows overriding the job type of each workflow node at launch time. To enable this, the Enable prompt on launch for nodes job type field must be checked when creating or editing the workflow template.
During testing, I noticed that the override does not apply to nodes unless they have ask_job_type_on_launch enabled. It appears that the job_type is hardcoded at the node level upon creation. This can be easily addressed by setting ask_job_type_on_launch to True within the get_job_kwargs method. However, I wanted to confirm whether this behavior is intentional before doing that.
ISSUE TYPE
- New or Enhanced Feature
COMPONENT NAME
- API
AWX VERSION
24.6.2.dev302+gc698663f6d
ADDITIONAL INFORMATION
Please note that if the workflow includes nodes with mixed job_type values, enabling this feature will override all of them with a single job_type at execution time. I’ll include this clarification in the ask_nodes_job_type_on_launch help text in the corresponding Ansible-UI PR.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
I have also created an Ansible UI PR for this feature.