# ansible-pull with inventory in repository

**URL:** <https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959>\
**Category:** Ansible Project\
**Created:** [December 4, 2014, 10:28am UTC](https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959 "2014-12-04T10:28:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baptiste\_Lafontaine](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Baptiste\_Lafontaine](https://forum.ansible.com/u/Baptiste_Lafontaine)\
**Post date:** [December 4, 2014, 10:28am UTC](https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959/1 "2014-12-04T10:28:07Z")

</div>

Hi,

Ansible-pull man pages states :

-i PATH, --inventory=PATH  
The PATH to the inventory hosts file. This can be a relative path within the checkout.

So I have been trying : ansible-pull -U git@mygit:ansible.git -i “inventory/” provision.yml  
It gives instantly : ERROR: Unable to find an inventory file, specify one with -i ?  
The “inventory” is a folder in my ansible.git repository wich contain ec2 inventory script and a static inventory. I have been using it without any problem in ansible “push” mode.

Is that a non supported behaviour or a bug in ansible-pull?

Thanks

---

<div class="post-metadata">

**Author:** ![Greg\_Andrews](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Greg\_Andrews](https://forum.ansible.com/u/Greg_Andrews)\
**Post date:** [December 4, 2014, 4:39pm UTC](https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959/2 "2014-12-04T16:39:10Z")

</div>

It looks like the info you’re passing to the -i option ends with a directory name instead of ending with a filename.

-Greg
