fix: all praise the allmighty yamllinter
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
---
|
||||
# Dendrite is a second-generation Matrix homeserver currently in Beta
|
||||
# See: https://github.com/matrix-org/dendrite
|
||||
|
||||
@ -127,7 +128,7 @@ matrix_dendrite_mscs_database: "dendrite_mscs"
|
||||
|
||||
matrix_dendrite_turn_uris: []
|
||||
matrix_dendrite_turn_shared_secret: ""
|
||||
matrix_dendrite_turn_allow_guests: False
|
||||
matrix_dendrite_turn_allow_guests: false
|
||||
|
||||
# Controls whether the self-check feature should validate TLS certificates.
|
||||
matrix_dendrite_disable_tls_validation: false
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
|
||||
- import_tasks: "{{ role_path }}/tasks/dendrite/setup_install.yml"
|
||||
when: matrix_dendrite_enabled|bool
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
stat:
|
||||
path: "{{ matrix_dendrite_media_store_path }}"
|
||||
register: local_path_media_store_stat
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
# This is separate and conditional, to ensure we don't execute it
|
||||
# if the path already exists or we failed to check, because it's mounted using fuse.
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-dendrite.service installation
|
||||
service:
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
when: "matrix_dendrite_systemd_service_result.changed|bool"
|
||||
|
||||
- name: Ensure matrix-dendrite-create-account script created
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- name: Check existence of matrix-dendrite service
|
||||
stat:
|
||||
path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
|
||||
@ -7,7 +9,7 @@
|
||||
service:
|
||||
name: matrix-dendrite
|
||||
state: stopped
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
register: stopping_result
|
||||
when: "matrix_dendrite_service_stat.stat.exists"
|
||||
|
||||
@ -19,7 +21,7 @@
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-dendrite.service removal
|
||||
service:
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
when: "matrix_dendrite_service_stat.stat.exists"
|
||||
|
||||
- name: Ensure Dendrite Docker image doesn't exist
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- set_fact:
|
||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-dendrite.service'] }}"
|
||||
when: matrix_dendrite_enabled|bool
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- import_tasks: "{{ role_path }}/tasks/init.yml"
|
||||
tags:
|
||||
- always
|
||||
|
@ -13,7 +13,7 @@
|
||||
service:
|
||||
name: matrix-dendrite
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
register: start_result
|
||||
|
||||
- name: Wait a while, so that Dendrite can manage to start
|
||||
|
@ -6,7 +6,7 @@
|
||||
validate_certs: "{{ matrix_dendrite_self_check_validate_certificates }}"
|
||||
register: result_matrix_dendrite_client_api
|
||||
ignore_errors: true
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
|
||||
- name: Fail if Matrix Client API not working
|
||||
fail:
|
||||
|
@ -6,7 +6,7 @@
|
||||
validate_certs: "{{ matrix_dendrite_self_check_validate_certificates }}"
|
||||
register: result_matrix_dendrite_federation_api
|
||||
ignore_errors: true
|
||||
check_mode: no
|
||||
check_mode: false
|
||||
|
||||
- name: Fail if Matrix Federation API not working
|
||||
fail:
|
||||
|
@ -7,8 +7,8 @@
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
with_items:
|
||||
- { path: "{{ matrix_dendrite_config_dir_path }}", when: true }
|
||||
- { path: "{{ matrix_dendrite_ext_path }}", when: true }
|
||||
- {path: "{{ matrix_dendrite_config_dir_path }}", when: true}
|
||||
- {path: "{{ matrix_dendrite_ext_path }}", when: true}
|
||||
when: "matrix_dendrite_enabled|bool and item.when"
|
||||
|
||||
- import_tasks: "{{ role_path }}/tasks/dendrite/setup.yml"
|
||||
|
Reference in New Issue
Block a user