diff --git a/inventory/group_by b/inventory/group_by index e2868faadf1..d09552e662c 100644 --- a/inventory/group_by +++ b/inventory/group_by @@ -19,7 +19,7 @@ notes: EXAMPLES = ''' # Create groups based on the machine architecture -- group_by: key=${ansible_machine} +- group_by: key=machine_{{ ansible_machine }} # Create groups like 'kvm-host' -- group_by: key=${ansible_virtualization_type}-${ansible_virtualization_role} +- group_by: key=virt_{{ ansible_virtualization_type }}_{{ ansible_virtualization_role }} '''