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.
 
 

22 lines
859 B

  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. - name: (Deprecation) Catch and report renamed appservice-discord variables
  13. fail:
  14. msg: >-
  15. Your configuration contains a variable, which now has a different name.
  16. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  17. when: "item.old in vars"
  18. with_items:
  19. - {'old': 'matrix_appservice_discord_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_discord_container_http_host_bind_port>'}