Don't take this as cannon, I would like to raise this in core team
meeting, but until then here are my thoughts:

This is a bit complicated, in general a 'host pattern' should return a
group if it matches, if not it should try to match hosts.
That said, that is meant for 'string' patterns not '*glob' patterns,
which should match 'anything that matches', rendering the 2.3
behaviour as 'correct' in my interpretation.

Just to make it clear, for the first case 'string' it should not match
the host 'c1', only the group:

[c1]
hosta
hostb

[dev]
c1

should return:
hosta
hostb


but for the 2nd case '*1' should match both host and group:

hosta
hostb
c1

----------
Brian Coca

-- 
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/CACVha7f2L0ztm5zNJRApitf62oVZrKRvko%3Dwf4ha3yz4tJsZGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to