Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

27 Zeilen
1.1 KiB

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_appservice_discord_client_id"
  9. - "matrix_appservice_discord_bot_token"
  10. - "matrix_appservice_discord_appservice_token"
  11. - "matrix_appservice_discord_homeserver_token"
  12. - "matrix_appservice_discord_homeserver_domain"
  13. - name: (Deprecation) Catch and report renamed appservice-discord variables
  14. fail:
  15. msg: >-
  16. Your configuration contains a variable, which now has a different name.
  17. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  18. when: "item.old in vars"
  19. with_items:
  20. - {'old': 'matrix_appservice_discord_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_discord_container_http_host_bind_port>'}
  21. - name: Require a valid database engine
  22. fail: msg="`matrix_appservice_discord_database_engine` needs to be either 'sqlite' or 'postgres'"
  23. when: "matrix_appservice_discord_database_engine not in ['sqlite', 'postgres']"