(cherry picked from commit 5cb7c2e45e
)
Co-authored-by: Felix Fontein <felix@fontein.de>
pull/4616/head
parent
0ba06f8d82
commit
bb695a00a0
|
@ -56,7 +56,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
_value:
|
_value:
|
||||||
description: Whether the module or action plugin denoted by the input exists.
|
description: The dictionary having the provided key-value pairs.
|
||||||
type: boolean
|
type: boolean
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ DOCUMENTATION = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create a list of dictionaries with map and the community.general.dict filter
|
- name: Parse a CSV file's contents
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
{{ csv_data | community.genera.from_csv(dialect='unix') }}
|
{{ csv_data | community.genera.from_csv(dialect='unix') }}
|
||||||
|
|
|
@ -116,7 +116,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
_value:
|
_value:
|
||||||
description: Whether the module or action plugin denoted by the input exists.
|
description: The result of the query.
|
||||||
type: any
|
type: any
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ DOCUMENTATION = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create a list of dictionaries with map and the community.general.dict filter
|
- name: Merge two lists
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
{{ list1 | community.general.lists_mergeby(list2, 'index') }}"
|
{{ list1 | community.general.lists_mergeby(list2, 'index') }}"
|
||||||
|
@ -66,8 +66,9 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
_value:
|
_value:
|
||||||
description: Whether the module or action plugin denoted by the input exists.
|
description: The merged list.
|
||||||
type: boolean
|
type: list
|
||||||
|
elements: dictionary
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from ansible.errors import AnsibleError, AnsibleFilterError
|
from ansible.errors import AnsibleError, AnsibleFilterError
|
||||||
|
|
Loading…
Reference in New Issue