# hosts in ansible-pull working only for 127.0.0.1

**URL:** <https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451>\
**Category:** Ansible Project\
**Created:** [January 29, 2014, 9:52am UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451 "2014-01-29T09:52:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [January 29, 2014, 9:52am UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/1 "2014-01-29T09:52:22Z")

</div>

Hi,

I am trying to use ansible-pull, however when i run it it always skips the hosts with the message " skippig: no hosts matched" unless i use

hosts: 127.0.0.1

in the local.yml file, any other host name even though it is defined in both the /etc/hosts and /etc/ansible/hosts will not work, but skips, i also tried to pass the inventory using -i hosts/pull.ini again it did not work,  
What am i doing wrong, or how can investigate the reason of skipping further, i am using ansible 1.5

my pull command is

ansible-pull -d /tmp/mygitrepo -U MyGITURL

my simple play starts with:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 29, 2014, 12:38pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/2 "2014-01-29T12:38:05Z")

</div>

Can you please share your Ansible version, as well as the full output from ansible-pull ?

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [January 29, 2014, 1:24pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/3 "2014-01-29T13:24:26Z")

</div>

Hi Michael,

I used both 1.5.0 cloned from github earlier today and created rpm in rhel5.3 using make rpm. i also tested 1.4.3, after working with benno in IRC i managed to get it working on different node RHEL5.4, will investigate the difference and try to pin the root casue

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 29, 2014, 1:28pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/4 "2014-01-29T13:28:56Z")

</div>

Probably a hostname that might not line up with inventory.

Look around in /usr/bin/ansible-pull and there isn’t too much there, should be straightforward to debug.

Let us know if you get stuck!

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [January 29, 2014, 1:31pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/5 "2014-01-29T13:31:59Z")

</div>

I did yum update on the server that was not working, it is release 5.3, and now it is working, i will keep an eye on it as we do have other nodes with 5.3 not updated. and will pinpoint it down now that i know it is package version issue

---

<div class="post-metadata">

**Author:** ![Govindaraj\_Venkatesa](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@Govindaraj\_Venkatesa](https://forum.ansible.com/u/Govindaraj_Venkatesa)\
**Post date:** [March 16, 2016, 4:15pm UTC](https://forum.ansible.com/t/hosts-in-ansible-pull-working-only-for-127-0-0-1/14451/6 "2016-03-16T16:15:31Z")

</div>

Hi All,

I am facing the same issue as “no hosts matched” and the ansible-pull is taking only localhost. It is not able to see any of my hosts. I also

Here is how i am using the command  
ansible-pull -U [git@github.com](mailto:git@github.com):XPlat/caps-sps.git -d /home/gvenka008c/caps-sps jenkins\_mesos\_icinga.yml -i caps-sps/jenkins\_mesos/ansible/inventory

PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: no hosts matched

I am running on Cent OS

$ uname -a  
Linux [jansible-cmce-01p.sys.comcast.net](http://jansible-cmce-01p.sys.comcast.net) 3.10.0-327.10.1.el7.x86\_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86\_64 x86\_64 x86\_64 GNU/Linux

$ ansible --version  
ansible 2.0.1.0

Let me know if any details required. Thanks.
