|
|
|
@ -1,13 +1,14 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
- name: Fail if required settings not defined
|
|
|
|
|
- name: Fail if required mautrix-slack settings not defined
|
|
|
|
|
ansible.builtin.fail:
|
|
|
|
|
msg: >-
|
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
|
when: "vars[item] == ''"
|
|
|
|
|
You need to define a required configuration setting (`{{ item.name }}`).
|
|
|
|
|
when: "item.when | bool and vars[item.name] == ''"
|
|
|
|
|
with_items:
|
|
|
|
|
- "matrix_mautrix_slack_appservice_token"
|
|
|
|
|
- "matrix_mautrix_slack_homeserver_token"
|
|
|
|
|
- {'name': 'matrix_mautrix_slack_appservice_token', when: true}
|
|
|
|
|
- {'name': 'matrix_mautrix_slack_homeserver_token', when: true}
|
|
|
|
|
- {'name': 'matrix_mautrix_slack_database_hostname', when: "{{ matrix_mautrix_slack_database_engine == 'postgres' }}"}
|
|
|
|
|
|
|
|
|
|
- name: Fail if appservice-slack and mautrix-slack have conflicting bot usernames
|
|
|
|
|
when: matrix_appservice_slack_enabled | default(False) | bool and matrix_mautrix_slack_appservice_bot_username == matrix_appservice_slack_bot_name | default ('')
|
|
|
|
|