# Specify Inventory for workflow\_nodes in workflow\_job\_template

**URL:** <https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464>\
**Category:** Get Help\
**Tags:** infra-config-as-code, awx\
**Created:** [January 24, 2024, 7:36pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464 "2024-01-24T19:36:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [January 24, 2024, 7:36pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464/1 "2024-01-24T19:36:06Z")

</div>

I cannot figure out how to define an inventory per-node when configuring AWX using awx.awx.workflow\_job\_template module.

I found the documentation here:  
[awx.awx.workflow\_job\_template\_module](https://docs.ansible.com/ansible/latest/collections/awx/awx/workflow_job_template_module.html)

I’ve tried:

- Specify inventory at the Workflow level
- Define inventory directly in unified\_job\_template
- Define inventory under related section (complete shot in the dark)

No matter what I try, the workflow completes just fine but there are no inventories assigned in the nodes.

Does anyone have any pointers, or possibly a way to extract a workflow from AWX in the same format I’d use to configure the workflow using awx.awx? This way, I could update workflows in the GUI and see how that changes the YAML config.

Thank you,

Dustin

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [January 24, 2024, 7:48pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464/2 "2024-01-24T19:48:04Z")

</div>

Did you set prompt on launch for the inventory in the job template?

the documentation for [awx.awx.workflow\_job\_template module – create, update, or destroy Automation Platform Controller workflow job templates. — Ansible Documentation](https://docs.ansible.com/ansible/latest/collections/awx/awx/workflow_job_template_module.html#parameter-workflow_nodes/inventory)

seem to suggest “prompt on launch” need to be enabled

---

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [January 24, 2024, 7:55pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464/3 "2024-01-24T19:55:22Z")

</div>

I have. Here is the definition of the Job Template that is being referenced by the Workflow Job Template.

```yaml
- name: SNOW Init
  awx.awx.job_template:
    name: SNOW Init
    description: Initialize SNOW Headers
    project: "MyProject"
    playbook: project/play_snow_init.yml
    ask_credential_on_launch: yes
    ask_inventory_on_launch: yes
    state: present

```

After the workflow is created using the playbook, if can go into the AWX GUI, click edit on that node in the workflow, and it asks me for an inventory. However, there is no inventory applied by the playbook till I set one manually.

Thank you for the recommendation.

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [January 24, 2024, 8:00pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464/4 "2024-01-24T20:00:55Z")

</div>

gotcha… maybe there’s a bug in the awx collection than…

can you create a github issue a minimal reproduction steps

Thanks~

---

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [January 24, 2024, 8:18pm UTC](https://forum.ansible.com/t/specify-inventory-for-workflow-nodes-in-workflow-job-template/3464/5 "2024-01-24T20:18:38Z")

</div>

Yeah, I can do that. Thanks for the advice so far.
