Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to filter filetree_read with find patterns/exclude #927

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roles/filetree_read/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ The following Variables set the organization where should be applied the configu
|`filetree_controller_workflow_job_templates`|String/List(String)|{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_workflow_job_templates.d/|no|Directory path to load controller object variables|
|`filetree_controller_schedules`|String/List(String)|{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_schedules.d/|no|Directory path to load controller object variables|
|`filetree_controller_roles`|String/List(String)|{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_roles.d/|no|Directory path to load controller object variables|
|`filetree_controller_include`|String/List(String)|omit|no|patterns for find to include only matching|
|`filetree_controller_exclude`|String/List(String)|omit|no|patterns for find to exclude matching|
|`filetree_controller_regex`|bool|false|no|switch to allow find to use_regex in combination with include/exclude default matches find default |

### Data Structure

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_applications }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_applications

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/credential_input_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_credential_input_sources }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_credential_input_sources

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/credential_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_credential_types }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_credential_types

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_credentials }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_credentials

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/execution_environments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_execution_environments }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_execution_environments

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_groups }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_groups

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_hosts }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_hosts

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/instance_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_instance_groups }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_instance_groups

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/inventories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_inventories }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_inventories

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/inventory_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_inventory_sources }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_inventory_sources

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/job_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_templates }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_templates

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_labels }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_labels

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_notifications }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_notifications

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/organizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_organizations }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_organizations

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_projects }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_projects

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_roles }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_roles

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_schedules }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_schedules

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_settings }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_settings

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/teams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_teams }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_teams

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/user_accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_user_accounts }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_user_accounts

Expand Down
3 changes: 3 additions & 0 deletions roles/filetree_read/tasks/workflow_job_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ansible.builtin.find:
paths: "{{ filetree_controller_workflow_job_templates }}"
file_type: file
patterns: "{{ filetree_controller_include | default(omit) }}"
excludes: "{{ filetree_contorller_exclude | default(omit) }}"
use_regex: "{{ filetree_controller_regex | default(false) }}"
recurse: true
register: __list_files_controller_workflow_job_templates

Expand Down
Loading