awx-project@googlegroups.com

38 views
Skip to first unread message

Gayathiri Devi

unread,
Apr 14, 2021, 7:34:55 AM4/14/21
to AWX Project

Hi,

We are new users of AWX and trying to explore its functionality. We want to run the same job with different user inputs parameters parallelly. Is it possible?

We read about Job slicing but not able to figure out how to provide inputs to different job slices.

Could anyone help us with this? Thanks in advance.


Regards,

Gayathiri

Christopher Meyers

unread,
Apr 14, 2021, 9:44:07 AM4/14/21
to Gayathiri Devi, AWX Project
The job slicing features is to allow you to scale horizontally. For your use case, you want to use Workflows w/ a shallow tree & lots of leaves. A single job-template can then be ran in parallel (enable concurrent job on the JT)

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/929f48b5-4a8a-4048-88aa-16141930c620n%40googlegroups.com.


--

CHRIS MEYERS

PRINCIPAL SOFTWARE ENGINEER, TOWERREWARD ZONE AMBASSADOR

Red Hat 

cme...@redhat.com   


anusha kadambala

unread,
Apr 14, 2021, 11:06:02 AM4/14/21
to Christopher Meyers, Gayathiri Devi, AWX Project
Hi Christopher

Is it possible to run concurrent job with different input parameters? If possible, Could you share an example ?



--


Njoy the share of Freedom :)
Anusha Kadambala

Christopher Meyers

unread,
Apr 14, 2021, 12:31:24 PM4/14/21
to anusha kadambala, Gayathiri Devi, AWX Project
Yes, create a workflow, add a job template. For each job template that you add in the workflow you can define custom extra vars specific to that instance of the job template that will be launched.

anusha kadambala

unread,
Apr 14, 2021, 8:35:59 PM4/14/21
to Christopher Meyers, Gayathiri Devi, AWX Project
Will do, thanks! 

Gayathiri Devi

unread,
Apr 16, 2021, 3:08:00 AM4/16/21
to anusha kadambala, Christopher Meyers, AWX Project

Hi Christopher,

 

We want to configure multiple servers parallelly with different parameters.

I created inventory with extra variables as follows, https://pastebin.com/zxtkqB6K. Currently, it contains three server details, but it will vary depending on the requirement.

We want to spawn the same job for each server(no of servers varies dynamically) in the inventory file parallelly. Is there any way to do that?

 

 

Tried some workaround:

 

We tried “async” and “poll” options in the ansible, which is allowing to run the job parallelly on different servers.

But when we club two jobs to a workflow, we are facing some constraints. If one server failed in the first job, all the servers are getting blocked for the second job. But we want the success servers to continue with the second job in the workflow.

 

Could you please help us how to proceed further?

 

 

Regards,

Gayathiri

Reply all
Reply to author
Forward
0 new messages