Skip removing /.well-known/element directory to suppress ansible-lint error

Leaving an orphan directory is okay and can be improved later on.
This commit is contained in:
Slavi Pantaleev 2023-02-10 14:16:00 +02:00
parent 01ccec2dbe
commit 43a6a035a0

View File

@ -10,14 +10,6 @@
- "{{ matrix_jitsi_prosody_auth_matrix_files | map(attribute='path') | map('regex_replace', '^', matrix_jitsi_prosody_plugins_path+'/') | list }}" - "{{ matrix_jitsi_prosody_auth_matrix_files | map(attribute='path') | map('regex_replace', '^', matrix_jitsi_prosody_plugins_path+'/') | list }}"
register: matrix_jitsi_prosody_auth_matrix_user_verification_uninstalled register: matrix_jitsi_prosody_auth_matrix_user_verification_uninstalled
- name: Remove .well-known/element directory if empty
ansible.builtin.command:
argv:
- rmdir
- "{{ matrix_static_files_base_path }}/.well-known/element"
removes: "{{matrix_static_files_base_path}}/.well-known/element"
ignore_errors: true
- when: matrix_jitsi_prosody_auth_matrix_user_verification_uninstalled.changed - when: matrix_jitsi_prosody_auth_matrix_user_verification_uninstalled.changed
block: block:
- name: Populate service facts - name: Populate service facts