​Joost,​

> hosts/static1
> ---
> [group1]
> host1
>
> hosts/static2
> ---
> [group2]
> host1
>
> test.yml
> ---
> - hosts: all
>   connection: local
>   gather_facts: no
>   tasks:
>   - debug: var=hostvars
>
> It looks like group1 is somehow masking group2 during limiting:
>
> $ ansible-playbook test.yml -i hosts -l group1
>
> PLAY [all]
> ********************************************************************
>
> TASK: [debug var=group_names]
> *************************************************
> ok: [host1] => {
>     "group_names": [
>         "group1",
>         "group2"
>     ]
> }
>
> ​This is correct.
​

> $ ansible-playbook test.yml -i hosts -l group2
> ERROR: provided hosts list is empty
>

​I can reproduce this with standard ansible.
I get expected output with my integration branch that holds the different
patches Michael mentioned:
https://github.com/sergevanginderachter/ansible/tree/INTEGRATION


> Is this a bug?
>

​Yes, and it will get solved :)



Serge

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEhzMJDB19MRd6cEHEqiFW7bdeR1DU5qJ%2B-igWxH7DzFsRw7Zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to