mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string Added deprecation warning to moduledev.rst and remove deprecated example from it Fixed up a few typos and uppercased some acronyms. add consistency to how EXAMPLES are formatted
This commit is contained in:
@@ -13,11 +13,13 @@ options:
|
||||
- The variables whose values will be used as groups
|
||||
required: true
|
||||
author: Jeroen Hoekx
|
||||
examples:
|
||||
- description: Create groups based on the machine architecture
|
||||
code: group_by key=${ansible_machine}
|
||||
- description: Create groups like 'kvm-host'
|
||||
code: group_by key=${ansible_virtualization_type}-${ansible_virtualization_role}
|
||||
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}
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user