Fix lint-reported errors
This commit is contained in:
parent
9736202294
commit
2649d9d8bb
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-aux.git
|
- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-aux.git
|
||||||
version: v1.0.0-0
|
version: v1.0.0-0
|
||||||
name: aux
|
name: aux
|
||||||
|
|
|
@ -73,7 +73,6 @@
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-coturn.service.j2"
|
src: "{{ role_path }}/templates/systemd/matrix-coturn.service.j2"
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-coturn.service"
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-coturn.service"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: matrix_coturn_systemd_service_change_results
|
|
||||||
|
|
||||||
# This may be unnecessary when more long-lived certificates are used.
|
# This may be unnecessary when more long-lived certificates are used.
|
||||||
# We optimize for the common use-case though (short-lived Let's Encrypt certificates).
|
# We optimize for the common use-case though (short-lived Let's Encrypt certificates).
|
||||||
|
@ -83,7 +82,6 @@
|
||||||
src: "{{ role_path }}/templates/systemd/{{ item }}.j2"
|
src: "{{ role_path }}/templates/systemd/{{ item }}.j2"
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/{{ item }}"
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/{{ item }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: "matrix_coturn_systemd_service_change_results"
|
|
||||||
when: "matrix_coturn_tls_enabled | bool"
|
when: "matrix_coturn_tls_enabled | bool"
|
||||||
with_items:
|
with_items:
|
||||||
- matrix-coturn-reload.service
|
- matrix-coturn-reload.service
|
||||||
|
@ -94,13 +92,7 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
register: "matrix_coturn_systemd_service_change_results"
|
|
||||||
when: "not matrix_coturn_tls_enabled | bool"
|
when: "not matrix_coturn_tls_enabled | bool"
|
||||||
with_items:
|
with_items:
|
||||||
- matrix-coturn-reload.service
|
- matrix-coturn-reload.service
|
||||||
- matrix-coturn-reload.timer
|
- matrix-coturn-reload.timer
|
||||||
|
|
||||||
- name: Ensure systemd reloaded if systemd units changed
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_coturn_systemd_service_change_results.changed"
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
|
- setup-all
|
||||||
|
- setup-synapse-auto-compressor
|
||||||
|
- install-all
|
||||||
|
- install-synapse-auto-compressor
|
||||||
|
block:
|
||||||
- when: matrix_synapse_auto_compressor_enabled | bool
|
- when: matrix_synapse_auto_compressor_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
|
||||||
- when: matrix_synapse_auto_compressor_enabled | bool
|
- when: matrix_synapse_auto_compressor_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
|
||||||
tags:
|
|
||||||
|
- tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse-auto-compressor
|
- setup-synapse-auto-compressor
|
||||||
- install-all
|
block:
|
||||||
- install-synapse-auto-compressor
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- when: not matrix_synapse_auto_compressor_enabled | bool
|
- when: not matrix_synapse_auto_compressor_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-synapse-auto-compressor
|
|
||||||
|
|
Loading…
Reference in a new issue