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

Version Path
qb-0.4.5 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.4.4 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.4.3 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.4.2 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.4.1 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.4.0 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.25 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.24 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.23 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.22 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.21 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.20 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.19 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.18 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.17 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.16 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.15 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.14 roles/qb/role/tasks/plugins/filter_plugins.yml
qb-0.3.13 roles/qb/role/tasks/plugins/filter_plugins.yml