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:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user