Is it possible to run different nodes in same workflow templates at same automation-job pod?

Hello!

Is it possible to run different nodes in same workflow templates at same automation-job pod?

workflow template visualizer example
[Start] - [A node] - [B node]

When I start workflow template, awx create automation-job pod for play A node
And after A node finish, automation-job pod is deleted.
And awx create another automation-job pod for play B node.

I want to A node and B node play in same automation-job pod.
I wonder that Is it possible.

Please, tell me how to configure.
Thanks, for your reply.

No this isn’t possible, each job that is started in a workflow will run in its own automation job pod, so the A and B jobs will run in separate pods.

Is there a particular use case you have in mind for running these in the same pod?

AWX Team

Oh, First Thanks for your reply.

In my case, A node is a job that download some files, and B node is a job that send downloaded files.

Based on your answer, I will plan to merge A node and B node.

By the way, I have the another questions about creating instance.

  1. If instance is created, the instance is always running on the node. is it right?

  2. Can I create instance on Rocky 8.7 linux OS?

  1. Is it possible to create instance manually, not using ansible script?
  • After running awx-ee docker container, I will do something in container for receptor configuration.
  • Is it possible to create instance for that way?

Thanks for your reply! :slight_smile:
Have a nice day

> In my case, A node is a job that download some files, and B node is a job that send downloaded files.

you may look into this feature https://docs.ansible.com/automation-controller/latest/html/userguide/execution_environments.html#execution-environment-mount-options

it allows you to mount a common path across all of the launched job pods running in that cluster. That way you can dump files to it in JobA and then JobB should see them

If instance is created, the instance is always running on the node. is it right?

there are different types of instances. “control” instances are scaled up by increasing the replica set of the awx deployment. “execution” instances are added via the API, and these types of instances do not run on the k8s cluster. They point to an external remote node (or server).

Can I create instance on Rocky 8.7 linux OS?

Yes the requirements for an external execution node is minimal and Rocky 8.7 should be compatible.

Is it possible to create instance manually, not using ansible script?

You don’t need to use the provided ansible playbook for setting up your node. You can do it manually. However, it IS required that you add the instance via the API, because the controller node needs to be aware of this instance.

Let us know if you have more questions, happy to help!

AWX Team

Thanks for your reply!

It is very helpful for me.

I will try to use execution environment mount options.

Thank you!

Have a nice day!

2023년 3월 4일 토요일 오전 3시 42분 50초 UTC+9에 AWX Project님이 작성: