Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 line
1.4 KiB

  1. ---
  2. - name: Fail if required mautrix-slack settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_mautrix_slack_appservice_token', when: true}
  9. - {'name': 'matrix_mautrix_slack_homeserver_token', when: true}
  10. - {'name': 'matrix_mautrix_slack_database_hostname', when: "{{ matrix_mautrix_slack_database_engine == 'postgres' }}"}
  11. - name: Fail if appservice-slack and mautrix-slack have conflicting bot usernames
  12. when: matrix_appservice_slack_enabled | default(False) | bool and matrix_mautrix_slack_appservice_bot_username == matrix_appservice_slack_bot_name | default ('')
  13. ansible.builtin.fail:
  14. msg: |
  15. The appservice-slack and mautrix-slack components are both enabled and use the same bot username ({{ matrix_mautrix_slack_appservice_bot_username }}), as per their default configuration, which causes a conflcit.
  16. To resolve the conflict, make one of these components use a different username.
  17. Consider either changing `matrix_mautrix_slack_appservice_bot_username` (the bot username for the mautrix-slack component) or `matrix_appservice_slack_bot_name` (the bot username for the appservice-slack component).
  18. We recommend that you change the username for the newly-added (and yet unused) component.