ansible.group_by(3) - Linux man page
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}
Author
Jeroen Hoekx
See Also
ansible(1), http://ansible.github.com/modules.html#group-by