Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

110 lignes
5.7 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed Hookshot variables
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_hookshot_feeds_interval', 'new': 'matrix_hookshot_feeds_pollIntervalSeconds'}
  10. - {'old': 'matrix_hookshot_generic_urlprefix', 'new': 'matrix_hookshot_generic_urlPrefix'}
  11. - {'old': 'matrix_hookshot_generic_allow_js_transformation_functions', 'new': 'matrix_hookshot_generic_allowJsTransformationFunctions'}
  12. - {'old': 'matrix_hookshot_generic_user_id_prefix', 'new': 'matrix_hookshot_generic_userIdPrefix'}
  13. - {'old': 'matrix_hookshot_github_secret', 'new': 'matrix_hookshot_github_webhook_secret'}
  14. - {'old': 'matrix_hookshot_github_appid', 'new': 'matrix_hookshot_github_auth_id'}
  15. - {'old': 'matrix_hookshot_github_oauth_id', 'new': 'matrix_hookshot_github_oauth_client_id'}
  16. - {'old': 'matrix_hookshot_github_oauth_secret', 'new': 'matrix_hookshot_github_oauth_client_secret'}
  17. - {'old': 'matrix_hookshot_github_oauth_uri', 'new': 'matrix_hookshot_github_oauth_redirect_uri'}
  18. - {'old': 'matrix_hookshot_github_ignore_hooks', 'new': 'matrix_hookshot_github_defaultOptions_ignoreHooks'}
  19. - {'old': 'matrix_hookshot_github_command_prefix', 'new': 'matrix_hookshot_github_defaultOptions_commandPrefix'}
  20. - {'old': 'matrix_hookshot_github_showIssueRoomLink', 'new': 'matrix_hookshot_github_defaultOptions_showIssueRoomLink'}
  21. - {'old': 'matrix_hookshot_github_pr_diff', 'new': 'matrix_hookshot_github_defaultOptions_prDiff'}
  22. - {'old': 'matrix_hookshot_github_including_labels', 'new': 'matrix_hookshot_github_defaultOptions_includingLabels'}
  23. - {'old': 'matrix_hookshot_github_excluding_labels', 'new': 'matrix_hookshot_github_defaultOptions_excludingLabels'}
  24. - {'old': 'matrix_hookshot_github_hotlink_prefix', 'new': 'matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix'}
  25. - {'old': 'matrix_hookshot_jira_secret', 'new': 'matrix_hookshot_jira_webhook_secret'}
  26. - {'old': 'matrix_hookshot_jira_oauth_id', 'new': 'matrix_hookshot_jira_oauth_client_id'}
  27. - {'old': 'matrix_hookshot_jira_oauth_secret', 'new': 'matrix_hookshot_jira_oauth_client_secret'}
  28. - {'old': 'matrix_hookshot_jira_oauth_uri', 'new': 'matrix_hookshot_jira_oauth_client_secret'}
  29. - {'old': 'matrix_hookshot_gitlab_secret', 'new': 'matrix_hookshot_gitlab_webhook_secret'}
  30. - {'old': 'matrix_hookshot_ident', 'new': 'matrix_hookshot_identifier'}
  31. - name: Fail if required settings not defined
  32. ansible.builtin.fail:
  33. msg: >-
  34. You need to define a required configuration setting (`{{ item }}`).
  35. when: "vars[item] == ''"
  36. with_items:
  37. - "matrix_hookshot_appservice_token"
  38. - "matrix_hookshot_homeserver_address"
  39. - "matrix_hookshot_homeserver_token"
  40. - name: Fail if required GitHub settings not defined
  41. ansible.builtin.fail:
  42. msg: >-
  43. You need to define a required configuration setting (`{{ item }}`) to enable GitHub.
  44. when: "matrix_hookshot_github_enabled and vars[item] == ''"
  45. with_items:
  46. - "matrix_hookshot_github_auth_id"
  47. - "matrix_hookshot_github_webhook_secret"
  48. - name: Fail if required GitHub OAuth settings not defined
  49. ansible.builtin.fail:
  50. msg: >-
  51. You need to define a required configuration setting (`{{ item }}`) to enable GitHub OAuth.
  52. when: "matrix_hookshot_github_oauth_enabled and vars[item] == ''"
  53. with_items:
  54. - "matrix_hookshot_github_oauth_client_id"
  55. - "matrix_hookshot_github_oauth_client_secret"
  56. - name: Fail if required Jira settings not defined
  57. ansible.builtin.fail:
  58. msg: >-
  59. You need to define a required configuration setting (`{{ item }}`) to enable Jira.
  60. when: "matrix_hookshot_jira_enabled and vars[item] == ''"
  61. with_items:
  62. - "matrix_hookshot_jira_webhook_secret"
  63. - name: Fail if required Jira OAuth settings not defined
  64. ansible.builtin.fail:
  65. msg: >-
  66. You need to define a required configuration setting (`{{ item }}`) to enable Jira OAuth.
  67. when: "matrix_hookshot_jira_oauth_enabled and vars[item] == ''"
  68. with_items:
  69. - "matrix_hookshot_jira_oauth_client_id"
  70. - "matrix_hookshot_jira_oauth_client_secret"
  71. - name: Fail if required Figma settings not defined
  72. ansible.builtin.fail:
  73. msg: >-
  74. You need to define at least one Figma instance in `matrix_hookshot_figma_instances` to enable Figma.
  75. when: "matrix_hookshot_figma_enabled and matrix_hookshot_figma_instances | length == 0"
  76. - name: Fail if required provisioning settings not defined
  77. ansible.builtin.fail:
  78. msg: >-
  79. You need to define a required configuration setting (`{{ item }}`) to enable provisioning.
  80. when: "matrix_hookshot_provisioning_enabled and vars[item] == ''"
  81. with_items:
  82. - "matrix_hookshot_provisioning_secret"
  83. - name: Fail if no Redis queue enabled when Hookshot encryption is enabled
  84. ansible.builtin.fail:
  85. msg: >-
  86. You need to define a required configuration setting (`{{ item }}`) to enable Hookshot encryption.
  87. when: "matrix_hookshot_experimental_encryption_enabled and matrix_hookshot_queue_host == ''"
  88. - name: (Deprecation) Catch and report old metrics usage
  89. ansible.builtin.fail:
  90. msg: >-
  91. Your configuration contains a variable (`{{ item }}`), which refers to the old metrics collection system for Hookshot,
  92. which exposed metrics on `https://stats.DOMAIN/hookshot/metrics`.
  93. We now recommend exposing Hookshot metrics in another way, from another URL.
  94. Refer to the changelog for more details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#2022-06-22
  95. with_items:
  96. - matrix_hookshot_proxy_metrics
  97. - matrix_hookshot_metrics_endpoint
  98. when: "item in vars"