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=${ansible_machine}

Create groups like 'kvm-host'
group_by key=${ansible_virtualization_type}-${ansible_virtualization_role}
None

AUTHOR
Jeroen Hoekx

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