# EDA UI how to set inventory

**URL:** <https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926>\
**Category:** Get Help\
**Tags:** eda-server\
**Created:** [December 15, 2023, 3:55pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926 "2023-12-15T15:55:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cha](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cha/32/1731_2.png) [@cha](https://forum.ansible.com/u/cha)\
**Post date:** [December 15, 2023, 3:55pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926/1 "2023-12-15T15:55:02Z")

</div>

Hello,

For test purpose, an EDA instance is deployed in KinD.  
What I don’t understand with EDA UI is how do you add an inventory for rulebook? I don’t find anywhere to set an inventory.  
I create a rulebook activations with the hello\_events.yml, but it failed

```auto
2023-12-15 14:05:41,001 - ansible_rulebook.cli - ERROR - Terminating Rule Say Hello has an action run_playbook which needs inventory to be defined

```

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [December 15, 2023, 4:25pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926/2 "2023-12-15T16:25:31Z")

</div>

Hi,

I haven’t tried EDA so far, but looking at documentation, [`run_playbook` action](https://ansible.readthedocs.io/projects/rulebook/en/stable/actions.html#run-playbook) doesn’t seem to support passing an inventory indeed.

Now similar to `ansible-playbook`, `ansible-rulebook` seems to [let you specify inventories on command line](https://ansible.readthedocs.io/projects/rulebook/en/stable/usage.html):

> -i INVENTORY, --inventory INVENTORY  
> Inventory can be a file or a directory

As you haven’t shown the command you’re running, I can’t tell whether there is an issue or parameter simply is not there.

Hope this helps !

---

<div class="post-metadata">

**Author:** ![cha](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cha/32/1731_2.png) [@cha](https://forum.ansible.com/u/cha)\
**Post date:** [December 15, 2023, 5:00pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926/3 "2023-12-15T17:00:41Z")

</div>

There is no command line. It’s with EDA UI.

 ![screenshot](https://us1.discourse-cdn.com/ansible/original/2X/c/cddbaf8d66fec504d9a65324053495b16c3e4d34.png)

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [December 15, 2023, 5:37pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926/4 "2023-12-15T17:37:34Z")

</div>

I don’t know anything about an EDA UI, but I just found [this user documentation](https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4/html/event-driven_ansible_controller_user_guide/index), which hints us on this UI being part of AAP (which I never used).

Looking at it, I understand a [rulebook activation](https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4/html/event-driven_ansible_controller_user_guide/eda-rulebook-activations) needs a [project](https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4/html/event-driven_ansible_controller_user_guide/eda-projects) to be defined, which would point to a repository containing rulebooks. Then rulebooks would be run in a [decision environment](https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4/html/event-driven_ansible_controller_user_guide/eda-decision-environments), which is basically a container image.

Perhaps you have to build a custom image containing your inventories, though it would seem needlessly complex and misleading IMO, but if you can somehow specify the `ansible-rulebook` command to run from this image, you probably could add the `--inventory` parameter linked earlier from ansible-rulebook documentation, and point to your inventories in the same image, a volume you might be able to mount or better, the project repository. Just some thoughts.

---

<div class="post-metadata">

**Author:** ![Alex-Izquierdo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alex-izquierdo/32/679_2.png) [@Alex-Izquierdo](https://forum.ansible.com/u/Alex-Izquierdo)\
**Post date:** [December 15, 2023, 5:40pm UTC](https://forum.ansible.com/t/eda-ui-how-to-set-inventory/2926/5 "2023-12-15T17:40:28Z")

</div>

Hi @cha eda-server doesn’t have support for standalone ansible-rulebook executions with run\_playbook action, it’s intended to be used with AWX or AAP Controller (workflow and job templates), where there is no need to pass any inventory as it is something configured in the AWX side.
