matrix-docker-ansible-deploy/roles/custom/matrix-sliding-sync-proxy/tasks/validate_config.yml
2023-02-24 19:56:00 +01:00

10 lines
453 B
YAML

---
- name: Fail if required matrix-sliding-sync-proxy settings not defined
ansible.builtin.fail:
msg: >
You need to define a required configuration setting (`{{ item.name }}`).
when: "item.when | bool and vars[item.name] == ''"
with_items:
- {'name': 'matrix_sliding_sync_proxy_secret', when: true}
- {'name': 'matrix_sliding_sync_proxy_database_hostname', when: "{{ matrix_sliding_sync_proxy_database_engine == 'postgres' }}"}