Well, when I try with hosts

ansible -m ping tl-prod-mgdb-[01:03]
No hosts matched

ansible -m ping tl-prod-mgdb-[:03]
No hosts matched

But...this works as long as I change the group name
ansible -m ping tl_prod_mongo

Maybe the dash is problematic for hosts as well?

Jay

On Monday, December 8, 2014 3:46:46 PM UTC-6, Brian Coca wrote:
>
> the - is problematic with python dictionaries, which is what group 
> names end up being, hosts should be fine. 
>
> list slices (hostgroup[:2]) should work 
>
> -- 
> 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/e7032aaa-bcd4-44fc-bb9d-5428129fc7c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to