# Pass the inventory file and the group for Ansible-pull

**URL:** <https://forum.ansible.com/t/pass-the-inventory-file-and-the-group-for-ansible-pull/20161>\
**Category:** Ansible Project\
**Created:** [January 8, 2016, 11:29pm UTC](https://forum.ansible.com/t/pass-the-inventory-file-and-the-group-for-ansible-pull/20161 "2016-01-08T23:29:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Nunes](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@Ivan\_Nunes](https://forum.ansible.com/u/Ivan_Nunes)\
**Post date:** [January 8, 2016, 11:29pm UTC](https://forum.ansible.com/t/pass-the-inventory-file-and-the-group-for-ansible-pull/20161/1 "2016-01-08T23:29:26Z")

</div>

In my inventory I have a group [pdvtid]. As I say to ansible-pull to run from this group?

The name of my inventory is hosts.tid. As I say to ansible-pull to use this inventory file.

I’m running like this:

> **ansible-pull -d /home/ansible/local -U gituser@Ip\_URL:/home/gituser/mirror/ansible.git**

My local.yml:

> - hosts: pdvtid  
> vars\_files:
> - secrets.yml  
> roles:
> - common
> - pdv  
> vars:  
> password1: $1$GgJU6FXG$8nSgXwWqxb4EeDjtMSiHn.  
> password2: $1$yDsflhLb$rsnDY5Fo5Ln7vmiirdKj.0  
> password3: $1$aZ1FEfdd$3jIG0e9GtTzFbkh0DaKb2.

My inventory:
