Moving keeps everything in the /matrix directory, so that we
wouldn't contaminate anything else on the system or risk
clashing with something else.
Also retrieving certificates separately for the Riot and Matrix domains,
which should help in multiple ways:
- allows them to be very different (completely separate base domain..)
- allows for Riot to be disabled for the playbook some time later
and still have the code not break
when:"matrix_postgres_use_external and matrix_postgres_service_stat.stat.exists"
when:"matrix_postgres_use_external and matrix_postgres_service_stat.stat.exists"
- name:Check existance of matrix-postgres local data path
- name:Check existence of matrix-postgres local data path
stat:path="{{ matrix_postgres_data_path }}"
stat:path="{{ matrix_postgres_data_path }}"
register:matrix_postgres_data_path_stat
register:matrix_postgres_data_path_stat
when:matrix_postgres_use_external
when:matrix_postgres_use_external
@ -72,4 +72,4 @@
- name:Notify if matrix-postgres local data remains
- name:Notify if matrix-postgres local data remains
debug:
debug:
msg:"Note: You are not using a local PostgreSQL database, but some old data remains from before in {{ matrix_postgres_data_path }}. Feel free to delete that."
msg:"Note: You are not using a local PostgreSQL database, but some old data remains from before in {{ matrix_postgres_data_path }}. Feel free to delete that."
when:"matrix_postgres_use_external and matrix_postgres_data_path_stat.stat.exists"
when:"matrix_postgres_use_external and matrix_postgres_data_path_stat.stat.exists"