jonsible.filter_plugins

jonsible.filter_plugins

Build Status Galaxy

Role to include custom filter plugins

Requirements

None.

Role Variables

Default usage

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 dict

If you want to adapt this to your needs look at the Advanced usage section.

Advanced usage

For more advanced usage the following variables are available:

# see defaults/main.yml

Dependencies

None

Example Playbook

Install filters with the default settings

- hosts: all
  roles:
     - role: jonsible.filter_plugins

License

GPL-3.0-or-later

Author Information

This role was created in 2020 by [Jonathan Scherrer].

About

Role to include custom filter plugins

Install
ansible-galaxy install jonsible.filter_plugins
GitHub repository
License
gpl-3.0
Downloads
753