diff options
-rw-r--r-- | inventory/group_by.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/inventory/group_by.py b/inventory/group_by.py index 4bfd2020..28e9a41e 100644 --- a/inventory/group_by.py +++ b/inventory/group_by.py @@ -34,7 +34,10 @@ notes: EXAMPLES = ''' # Create groups based on the machine architecture -- group_by: key=machine_{{ ansible_machine }} +- group_by: + key: machine_{{ ansible_machine }} + # Create groups like 'kvm-host' -- group_by: key=virt_{{ ansible_virtualization_type }}_{{ ansible_virtualization_role }} +- group_by: + key: virt_{{ ansible_virtualization_type }}_{{ ansible_virtualization_role }} ''' |