Merge "Pattern for find module was optimized"
This commit is contained in:
commit
fbd3ce2681
@ -113,11 +113,6 @@
|
||||
recurse: no
|
||||
register: found_dashboards
|
||||
|
||||
# NOTE(noonedeadpunk):
|
||||
# patterns made not optimal, as ansible find module doesn't
|
||||
# process regexp with repeats, like [0-9]{2,4}.
|
||||
# Bug describing this issue:
|
||||
# https://github.com/ansible/ansible/issues/45048
|
||||
- name: Registering panels
|
||||
find:
|
||||
paths: |-
|
||||
@ -128,7 +123,7 @@
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{{ dashboard_path }}
|
||||
patterns: "^(_[0-9]{4}_.*.py|_[0-9]{2}_.*.py|.*_policy.json)$"
|
||||
patterns: ["^(_[0-9]{2,4}_.*.py|.*_policy.json)$"]
|
||||
file_type: file
|
||||
use_regex: yes
|
||||
register: found_panels
|
||||
|
Loading…
Reference in New Issue
Block a user