diff --git a/tasks/horizon_install_source.yml b/tasks/horizon_install_source.yml index 1e0fc077..9366c293 100644 --- a/tasks/horizon_install_source.yml +++ b/tasks/horizon_install_source.yml @@ -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