ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.97k stars 3.41k forks source link

instance groups prompt-on-launch on workflow #13747

Open amolari opened 1 year ago

amolari commented 1 year ago

Please confirm the following

Feature type

New Feature

Feature Summary

Today, job templates can be configured with instance groups prompt-on-launch. Therefore, jobs can be launched with the parameter on which instance group they'll be run. Please add a instance groups prompt-on-launch option at the workflow level. With such feature, all job templates configured in the workflow having instance groups prompt-on-launch enabled will inherit the instance groups setting configured for launching the workflow.

Select the relevant components

Steps to reproduce

none

Current results

none

Sugested feature result

When launching a workflow job configured with instance groups prompt-on-launch with the parameter --instance-group XYZ, all job templates in the workflow which are configured with instance groups prompt-on-launch will run on the instance group XYZ.

Additional information

At this time, the workaround is to create multiple inventories (same config except the instance group), select inventory prompt-on-launch for the workflow / templates and launch the workflow job with the appropriate inventory.

amolari commented 11 months ago

Any plan on this one? Some settings have been implemented at the JT-level and unfortunately still not usable at the WT-level...

RoeeFabrikant commented 5 months ago

Hey @djyasin, It would be really helpful if we could set the instance group name on the workflow level. Currently, to achieve this, we need to use the inventory to set the instance groups, and it requires us to fetch the inventory ID first instead of directly using the inventory name(from API). This workaround makes the entire process quite complicated...

Thanks!