# regarding inventory scripts

**URL:** <https://forum.ansible.com/t/regarding-inventory-scripts/16526>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [October 16, 2014, 1:18am UTC](https://forum.ansible.com/t/regarding-inventory-scripts/16526 "2014-10-16T01:18:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florin\_Andrei](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Post date:** [October 16, 2014, 1:18am UTC](https://forum.ansible.com/t/regarding-inventory-scripts/16526/1 "2014-10-16T01:18:05Z")

</div>

(New to Ansible, still figuring out things)

If I have several inventory scripts, is it possible to use them all at once, e.g. like this?

ansible -i ec2.py -i some-other-provider.py …

Are there any guidelines or templates for writing your own inventory script?

What prompts these questions is the fact that I have instances in AWS (for which there is an inventory script already) and also some instances with another provider (that doesn’t have an inventory script yet, so I’ll have to write my own).

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [October 16, 2014, 7:14am UTC](https://forum.ansible.com/t/regarding-inventory-scripts/16526/2 "2014-10-16T07:14:01Z")

</div>

​put both sript in a directory and pint -i .. to that directory​

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [October 16, 2014, 7:14am UTC](https://forum.ansible.com/t/regarding-inventory-scripts/16526/3 "2014-10-16T07:14:24Z")

</div>

​put both scripts in a directory and pint -i .. to that directory​

there are example inventory scripts in the repository, and a tech  
description on the json format it should return, in the docs
