Role to include custom filter plugins
None.
Add this role into your meta/main.yml to use it with your role :
dependencies:
- jonsible.filter_plugins
You can then use these filters :
def dict_filter_keys(_dict, _regex): # Selects keys in _dict matching regexes in _regex (list)
def dict_strip_keys(_dict, _regex): # Strips keys in _dict matching regexes _regex (list)
def dict_merge(_ldict, _rdict): # Merges right dict into left dictIf you want to adapt this to your needs look at the Advanced usage section.
For more advanced usage the following variables are available:
# see defaults/main.ymlNone
Install filters with the default settings
- hosts: all
roles:
- role: jonsible.filter_pluginsGPL-3.0-or-later
This role was created in 2020 by [Jonathan Scherrer].