# Updating inventory from a source

**URL:** <https://forum.ansible.com/t/updating-inventory-from-a-source/32720>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 17, 2020, 8:32pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720 "2020-04-17T20:32:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_York](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Post date:** [April 17, 2020, 8:32pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/1 "2020-04-17T20:32:12Z")

</div>

Hi AWX/Tower Community -

Having an issue with sourcing my inventory from a repository in Ansible Tower 3.5.3.

My inventories are stored in yaml files up in a repo. I have a project called “Repo - Inventories” that calls on that repo, but I have to manually update the project every time I make a change to the inventory, instead of it automatically updating when called upon.

Here are the settings I have for that project:

 ![!project.jpg](https://us1.discourse-cdn.com/ansible/original/2X/a/a519506631de0c3726c870a2d8e9885e645e3ffc.jpeg)

Here are my settings for the inventory source:

 ![!source.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e62889e42e168b68e1ebe1bce7660a8c7047bf9d.jpeg)

I would assume these settings would automatically update the inventory any time a template calls on it, but they are not. Does anyone know how can I get it so tower gets the latest inventory files when launching anything against my inventories based in source control?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 17, 2020, 8:36pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/2 "2020-04-17T20:36:00Z")

</div>

In tower /awx ive never sourced my inventory from a repo. You do that through other means.

> **(attachments)**
>
> ![!project.jpg](https://us1.discourse-cdn.com/ansible/original/2X/a/a519506631de0c3726c870a2d8e9885e645e3ffc.jpeg)  
> ![!source.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e62889e42e168b68e1ebe1bce7660a8c7047bf9d.jpeg)

---

<div class="post-metadata">

**Author:** ![Dave\_York](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Post date:** [April 17, 2020, 10:58pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/3 "2020-04-17T22:58:53Z")

</div>

I was under the impression this was a supported setup - How else would you store your inventory in source control?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 17, 2020, 10:59pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/4 "2020-04-17T22:59:41Z")

</div>

I don’t. I use the inventory in awx

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 17, 2020, 11:00pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/5 "2020-04-17T23:00:10Z")

</div>

Then use inventory scripts or custom ones to dynamically pull it in

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 17, 2020, 11:02pm UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/6 "2020-04-17T23:02:55Z")

</div>

I had a look for you.

[https://docs.ansible.com/ansible-tower/latest/html/administration/scm-inv-source.html](https://docs.ansible.com/ansible-tower/latest/html/administration/scm-inv-source.html)

May apply to awx. I have a older build.

---

<div class="post-metadata">

**Author:** ![Nuno\_Jordao](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Nuno\_Jordao](https://forum.ansible.com/u/Nuno_Jordao)\
**Post date:** [April 26, 2020, 12:39am UTC](https://forum.ansible.com/t/updating-inventory-from-a-source/32720/7 "2020-04-26T00:39:32Z")

</div>

Yes, I’ve used this with AWX and it works. It even merges several inventories as you can have several sources (file, script, etc) in that inventory.

Regards,

Nuno Jordão
