ansible/ansible — pull request #1684 by gregorg (2012-11-26 19:49:39+00:00)
Title: Added possibility to filter hosts from a group, with a regex

Added the possibility to filter hosts in a group with a regex.
I suggest to use yet another special char after groupname: ~

Usage in group pattern: group~filterpattern

For example:
ansible group~server-0[1236] -m ping
ansible web~proxy -m ping
ansible web~(proxy|frontend) -m ping