Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

73 satır
2.7 KiB

  1. ---
  2. - name: Fail if required settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_hookshot_appservice_token"
  9. - "matrix_hookshot_homeserver_token"
  10. - name: Fail if required GitHub settings not defined
  11. ansible.builtin.fail:
  12. msg: >-
  13. You need to define a required configuration setting (`{{ item }}`) to enable GitHub.
  14. when: "matrix_hookshot_github_enabled and vars[item] == ''"
  15. with_items:
  16. - "matrix_hookshot_github_appid"
  17. - "matrix_hookshot_github_secret"
  18. - name: Fail if required GitHub OAuth settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item }}`) to enable GitHub OAuth.
  22. when: "matrix_hookshot_github_oauth_enabled and vars[item] == ''"
  23. with_items:
  24. - "matrix_hookshot_github_oauth_id"
  25. - "matrix_hookshot_github_oauth_secret"
  26. - name: Fail if required Jira settings not defined
  27. ansible.builtin.fail:
  28. msg: >-
  29. You need to define a required configuration setting (`{{ item }}`) to enable Jira.
  30. when: "matrix_hookshot_jira_enabled and vars[item] == ''"
  31. with_items:
  32. - "matrix_hookshot_jira_secret"
  33. - name: Fail if required Jira OAuth settings not defined
  34. ansible.builtin.fail:
  35. msg: >-
  36. You need to define a required configuration setting (`{{ item }}`) to enable Jira OAuth.
  37. when: "matrix_hookshot_jira_oauth_enabled and vars[item] == ''"
  38. with_items:
  39. - "matrix_hookshot_jira_oauth_id"
  40. - "matrix_hookshot_jira_oauth_secret"
  41. - name: Fail if required Figma settings not defined
  42. ansible.builtin.fail:
  43. msg: >-
  44. You need to define at least one Figma instance to enable Figma.
  45. when: "matrix_hookshot_figma_enabled and matrix_hookshot_figma_instances is undefined"
  46. - name: Fail if required provisioning settings not defined
  47. ansible.builtin.fail:
  48. msg: >-
  49. You need to define a required configuration setting (`{{ item }}`) to enable provisioning.
  50. when: "matrix_hookshot_provisioning_enabled and vars[item] == ''"
  51. with_items:
  52. - "matrix_hookshot_provisioning_secret"
  53. - name: (Deprecation) Catch and report old metrics usage
  54. ansible.builtin.fail:
  55. msg: >-
  56. Your configuration contains a variable (`{{ item }}`), which refers to the old metrics collection system for Hookshot,
  57. which exposed metrics on `https://stats.DOMAIN/hookshot/metrics`.
  58. We now recommend exposing Hookshot metrics in another way, from another URL.
  59. Refer to the changelog for more details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#2022-06-22
  60. with_items:
  61. - matrix_hookshot_proxy_metrics
  62. - matrix_hookshot_metrics_endpoint
  63. when: "item in vars"