+

Search Tips   |   Advanced Search

ansible.builtin.group_by - Create Ansible groups based on facts

This module is part of ansible-base and included in all Ansible installations. In most cases, you can use the short module name group_by even without specifying the collections: keyword. Despite that, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module name.

New in version 0.9: of ansible.builtin


Synopsis

This module has a corresponding action plugin.


Parameters

Parameter Choices/Defaults Comments

key

string / required

The variables whose values will be used as groups.

parents

list / elements=string

Default:

"all"

The list of the parent groups.



Notes


See Also


See also

ansible.builtin.add_host

The official documentation on the ansible.builtin.add_host module.


Examples


Authors