Skip to content

Commit 5bf552b

Browse files
committed
[Fix #438] Corrects usage of regex_replace on a list
1 parent 9fbad21 commit 5bf552b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/grafana/tasks/dashboards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@
188188
owner: "grafana"
189189
group: "grafana"
190190
mode: "0755"
191-
loop: "{{ __dashboards_subdirs.files | map(attribute='path') | sort | regex_replace(grafana_dashboards_dir + '/*', '') }}"
191+
loop: "{{ __dashboards_subdirs.files | map(attribute='path') | sort | map('regex_replace', grafana_dashboards_dir + '/*', '') }}"
192192
become: true
193193
register: __dashboards_dir_created
194194
when: not ansible_check_mode
195-
195+
196196
- name: "Copy dashboard files"
197197
ansible.builtin.copy:
198198
src: "{{ item.path }}"
@@ -229,7 +229,7 @@
229229
state: absent
230230
loop: "{{ __dashboards_present_list | difference(__dashboards_copied_list) }}"
231231
become: true
232-
when:
232+
when:
233233
- grafana_provisioning_synced | bool
234234
- not ansible_check_mode
235235

0 commit comments

Comments
 (0)