Move setup sanity checks to a central place

This commit is contained in:
Slavi Pantaleev
2018-12-23 19:14:01 +02:00
parent 91567fc41d
commit fe9b9773c0
3 changed files with 15 additions and 5 deletions

View File

@ -1,10 +1,5 @@
---
- name: Fail if Macaroon key is missing
fail:
msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
when: "matrix_synapse_macaroon_secret_key == ''"
- set_fact:
matrix_synapse_media_store_parent_path: "{{ matrix_synapse_media_store_path|dirname }}"
matrix_synapse_media_store_directory_name: "{{ matrix_synapse_media_store_path|basename }}"