Sha256: 23fb34af74d61849195625abb98dfeeb89f24b075ff85754bfe7be4b43d205f2
Contents?: true
Size: 1010 Bytes
Versions: 19
Compression:
Stored size: 1010 Bytes
Contents
--- # Generate filter plugins boilerplate(s). - name: >- Create `filter_plugins` directory. file: dest: >- {{ role_dest }}/filter_plugins state: directory - name: >- Figure out if we received a single truthy value that indicates we should use the default filter plugin name. set_fact: role_filter_plugins_default: >- {{ role_filter_plugins|length == 1 and role_filter_plugins[0].lower() in ['1', 'true', 't', 'yes', 'y'] }} - when: role_filter_plugins_default name: >- Create default `filter_plugins/{{ role_namespaceless }}_plugins.py` include_tasks: >- {{ role_path }}/tasks/plugins/_filter_plugin.yml vars: name: >- {{ role_namespaceless }} - when: not role_filter_plugins_default name: >- Create each of filter plugins specified in `role_filter_plugins`. with_items: >- {{ role_filter_plugins }} loop_control: loop_var: name include_tasks: >- {{ role_path }}/tasks/plugins/_filter_plugin.yml
Version data entries
19 entries across 19 versions & 1 rubygems