Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

35 řádky
2.3 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.
  21. - name: (Deprecation) Catch and report renamed mautrix-slack variables
  22. ansible.builtin.fail:
  23. msg: >-
  24. Your configuration contains a variable, which now has a different name.
  25. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  26. when: "item.old in vars"
  27. with_items:
  28. - {'old': 'matrix_mautrix_slack_login_shared_secret', 'new': '<removed>'}
  29. - {'old': 'matrix_mautrix_slack_bridge_login_shared_secret_map', 'new': '<superseded by matrix_mautrix_slack_double_puppet_secrets>'}
  30. - {'old': 'matrix_mautrix_slack_bridge_double_puppet_server_map', 'new': '<removed>'}
  31. - {'old': 'matrix_mautrix_slack_docker_image_name_prefix', 'new': 'matrix_mautrix_slack_docker_image_registry_prefix'}