title: ansible-pull on remote hosts
body: <p>I want run the playbook on remote host, which the playbook is in github. So, I followed this <a href="https://medium.com/splunkuserdeveloperadministrator/using-ansible-pull-in-ansible-projects-ac04466643e8" rel="nofollow noreferrer">blog</a> and forked the repo <a href="https://github.com/vincesesto/ansible-pull-example" rel="nofollow noreferrer">https://github.com/vincesesto/ansible-pull-example</a></p>
  
  <p>In side the repo, I have modified <code>hosts</code> file to my server IP. When run <code>ansible-pull</code> </p>
  
  <pre><code>veeru@carb0n:~/ansible-example$ ansible-pull -U https://github.com/veerendra2/ansible-pull-example -i hosts
  Starting Ansible Pull at 2019-06-26 16:26:30
  /usr/local/bin/ansible-pull -U https://github.com/veerendra2/ansible-pull-example -i hosts
   [WARNING]: Could not match supplied host pattern, ignoring: carb0n
  ERROR! Specified hosts and/or --limit does not match any hosts
  </code></pre>
  
  <p>Not sure why it is picking current server name <code>carb0n</code> even I specified <code>-i hosts</code> argument.</p>
  
  <p>here is my <code>hosts</code> file</p>
  
  <pre><code>[hydrogen]
  10.250.30.11
  </code></pre>
  
  <p>local.yml</p>
  
  <pre><code>---
  - hosts: all
  
    tasks:
    - name: install example application
      copy:
        src: ansible_test_app
        dest: /tmp/
        owner: root
        group: root
  </code></pre>
  
  <p>I had changed <code>local.yml</code> to <code>hydrogen.yml</code>, but still getting same error.</p>