ANSIBLE.GROUP_BY(3)             ANSIBLE MODULES            ANSIBLE.GROUP_BY(3)



NAME
       group_by - Create Ansible groups based on facts

DESCRIPTION
       Use facts to create ad-hoc groups that can be used later in a playbook.

OPTIONS
       key    The variables whose values will be used as groups(required).

NOTES
       Spaces in group names are converted to dashes '-'.

EXAMPLES
       # Create groups based on the machine architecture
       -  group_by: key=machine_{{ ansible_machine }}
       # Create groups like 'kvm-host'
       -  group_by: key=virt_{{ ansible_virtualization_type }}_{{ ansible_virtualization_role }}



AUTHOR
       Jeroen Hoekx

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#group-by



1.4.5                             2014-02-12               ANSIBLE.GROUP_BY(3)
