Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

23 rader
1.5 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_address', when: true}
  10. - {'name': 'matrix_mautrix_slack_homeserver_token', when: true}
  11. - {'name': 'matrix_mautrix_slack_database_hostname', when: "{{ matrix_mautrix_slack_database_engine == 'postgres' }}"}
  12. - {'name': 'matrix_mautrix_slack_container_network', when: true}
  13. - name: Fail if appservice-slack and mautrix-slack have conflicting bot usernames
  14. when: matrix_appservice_slack_enabled | default(False) | bool and matrix_mautrix_slack_appservice_bot_username == matrix_appservice_slack_bot_name | default ('')
  15. ansible.builtin.fail:
  16. msg: |
  17. 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.
  18. To resolve the conflict, make one of these components use a different username.
  19. 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).
  20. We recommend that you change the username for the newly-added (and yet unused) component.