|
|
@ -1,5 +1,13 @@
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
|
|
|
|
|
|
# We don't want to fail in such cases.
|
|
|
|
|
|
|
|
- name: Fail if matrix-synapse role already executed
|
|
|
|
|
|
|
|
fail:
|
|
|
|
|
|
|
|
msg: >-
|
|
|
|
|
|
|
|
The matrix-bridge-mautrix-facebook role needs to execute before the matrix-synapse role.
|
|
|
|
|
|
|
|
when: "matrix_synapse_role_executed|default(False)"
|
|
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- block:
|
|
|
|
- name: Check if an SQLite database already exists
|
|
|
|
- name: Check if an SQLite database already exists
|
|
|
|
stat:
|
|
|
|
stat:
|
|
|
@ -20,15 +28,6 @@
|
|
|
|
when: "matrix_mautrix_facebook_sqlite_database_path_local_stat_result.stat.exists"
|
|
|
|
when: "matrix_mautrix_facebook_sqlite_database_path_local_stat_result.stat.exists"
|
|
|
|
when: "matrix_mautrix_facebook_database_engine == 'postgres'"
|
|
|
|
when: "matrix_mautrix_facebook_database_engine == 'postgres'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
|
|
|
|
|
|
# We don't want to fail in such cases.
|
|
|
|
|
|
|
|
- name: Fail if matrix-synapse role already executed
|
|
|
|
|
|
|
|
fail:
|
|
|
|
|
|
|
|
msg: >-
|
|
|
|
|
|
|
|
The matrix-bridge-mautrix-facebook role needs to execute before the matrix-synapse role.
|
|
|
|
|
|
|
|
when: "matrix_synapse_role_executed|default(False)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure Mautrix Facebook image is pulled
|
|
|
|
- name: Ensure Mautrix Facebook image is pulled
|
|
|
|
docker_image:
|
|
|
|
docker_image:
|
|
|
|
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
|
|
|
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
|
|
|