No host limitation of ansible-pull

Hi everyone,

I wrote a play and put it on a private repository.

I try to execute it through

ansible-pull -U http://gitlab.mydomain.com/jim/ansible-books.git -i hosts unittest_automation.yml

But I got an error return: ERROR: provided hosts list is empty

I found that ansible-pull always add "–limit=localhost" on the executing command.

I wonder it is a good idea to make “–limit” an option when excuting a playbook.

Thanks.
Jim

Can you share what the specification is for your “hosts” line in your playbook versus what’s in your inventory file?

Also I should point out this is more of a user question, so probably more fit for ansible-project@googelgroups.com. Not a problem though!