globbing in replace for path does not work

so added a task to find all files to change
and loop over the registered var
This commit is contained in:
rene
2022-02-21 18:08:55 +01:00
parent 306666bcd1
commit 6c9488159a

View File

@@ -66,12 +66,20 @@
- { regexp: "_CONTENT: false", repl: "_CONTENT: true"}
notify: restart_jitsi
- name: jitsimeet | get all language files
find:
paths: "/usr/share/jitsi-meet/lang/"
patterns: '*.json'
recurse: yes
register: files_to_change
- name: jitsimeet | Replace branding in language files
replace:
path: "/usr/share/jitsi-meet/lang/*.json"
path: "{{ item.path }}"
regexp: '"headerTitle":.*$'
replace: '"headerTitle": "Mewimeet",'
backup: True
loop: "{{ files_to_change.files }}"
notify: restart_jitsi
- name: jitsimeet | cron | schedule refresh of statistics