diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-12 17:54:04 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-15 14:23:35 -0500 |
commit | e5446db4b2137822e8ebba38c1e60744a5fc8c86 (patch) | |
tree | 6301017e145257fcb6045e8c885db44e7831b0a9 | |
parent | 0aeee0e7c23637fc6530b958b72c2a2e91a7423d (diff) | |
download | ansible-modules-core-e5446db4b2137822e8ebba38c1e60744a5fc8c86.tar.gz |
Change example syntax on group_by module
-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 }} ''' |