ansible-pull with inventory in repository

277 views
Skip to first unread message

Baptiste Lafontaine

unread,
Dec 4, 2014, 5:28:07 AM12/4/14
to ansible...@googlegroups.com
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

Greg Andrews

unread,
Dec 4, 2014, 11:39:20 AM12/4/14
to ansible...@googlegroups.com
 It looks like the info you're passing to the -i option ends with a directory name instead of ending with a filename.

  -Greg

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5a0de994-b63f-4bfb-a8d5-44ae54ae4f15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages