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.
 
 

46 lignes
2.2 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed settings
  3. 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_nginx_proxy_matrix_client_api_addr_with_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container'}
  10. - {'old': 'matrix_nginx_proxy_matrix_client_api_addr_sans_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container'}
  11. # People who configured this to disable Riot, would now wish to be disabling Element.
  12. # We now also have `matrix_nginx_proxy_proxy_riot_compat_redirect_`, but that's something else and is disabled by default.
  13. - {'old': 'matrix_nginx_proxy_proxy_riot_enabled', 'new': 'matrix_nginx_proxy_proxy_element_enabled'}
  14. - name: Fail on unknown matrix_ssl_retrieval_method
  15. fail:
  16. msg: >-
  17. `matrix_ssl_retrieval_method` needs to be set to a known value.
  18. when: "matrix_ssl_retrieval_method not in ['lets-encrypt', 'self-signed', 'manually-managed', 'none']"
  19. - name: Fail on unknown matrix_nginx_proxy_ssl_config
  20. fail:
  21. msg: >-
  22. `matrix_nginx_proxy_ssl_preset` needs to be set to a known value.
  23. when: "matrix_nginx_proxy_ssl_preset not in ['modern', 'intermediate', 'old']"
  24. - block:
  25. - name: (Deprecation) Catch and report renamed settings
  26. fail:
  27. msg: >-
  28. Your configuration contains a variable, which now has a different name.
  29. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  30. with_items:
  31. - {'old': 'host_specific_matrix_ssl_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  32. - {'old': 'host_specific_matrix_ssl_lets_encrypt_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  33. when: "item.old in vars"
  34. - name: Fail if required variables are undefined
  35. fail:
  36. msg: "Detected an undefined required variable"
  37. with_items:
  38. - "matrix_ssl_lets_encrypt_support_email"
  39. when: "vars[item] is none"
  40. when: "matrix_ssl_retrieval_method == 'lets-encrypt'"