This commit is contained in:
Lorenzo Tanganelli 2025-05-15 15:39:27 +00:00
commit 7bf066116b
2 changed files with 51 additions and 49 deletions

1
ansible Submodule

@ -0,0 +1 @@
Subproject commit fe2d9e316a38c96b798e830acc0a1314c35b8ef4

View file

@ -36,16 +36,16 @@ options:
default: true default: true
required: false required: false
matching_parameter: matching_parameter:
description: Specify the matching option of target keys. description: Specify the matching option of values.
type: str type: str
default: equal default: equal
choices: choices:
equal: Matches keys of equally one of the O(target[].before) items. equal: Matches values of equally one of the O(values[]) items.
regex: Matches keys that match one of the regular expressions provided in O(target[].before).: regex: Matches values that match one of the regular expressions provided in O(values[]).
""" """
EXAMPLES = r""" EXAMPLES = r"""
- name: Remove empty keys from a list of dictionaries - name: Remove empty values from a list of dictionaries
set_fact: set_fact:
my_list: my_list:
- a: foo - a: foo
@ -205,6 +205,7 @@ def remove_keys_from_values(data, values=None, recursive=True, matching_paramete
return clean(data) return clean(data)
class FilterModule(object): class FilterModule(object):
def filters(self): def filters(self):
return { return {