mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-06-25 10:47:51 +02:00
Add validation tasks to matrix-synapse-auto-compressor
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
---
|
||||
|
||||
- block:
|
||||
- when: matrix_synapse_auto_compressor_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||
|
||||
- when: matrix_synapse_auto_compressor_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
|
||||
tags:
|
||||
|
@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: Fail if required matrix-synapse-auto-compressor settings not defined
|
||||
ansible.builtin.fail:
|
||||
msg: >
|
||||
You need to define a required configuration setting (`{{ item }}`).
|
||||
when: "vars[item] == ''"
|
||||
with_items:
|
||||
- matrix_synapse_auto_compressor_database_hostname
|
||||
- matrix_synapse_auto_compressor_database_password
|
Reference in New Issue
Block a user