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.
 
 

27 lines
1.5 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed matrix-cactus-comments settings
  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_bot_cactus_comments_systemd_required_services_list', 'new': 'matrix_cactus_comments_systemd_required_services_list'}
  10. - {'old': 'matrix_bot_cactus_comments_systemd_wanted_services_list', 'new': 'matrix_cactus_comments_systemd_wanted_services_list'}
  11. - {'old': 'matrix_cactus_comments_client_endpoint', 'new': 'matrix_cactus_comments_client_path_prefix'}
  12. - {'old': 'matrix_cactus_comments_client_nginx_path', 'new': '<superseded by Traefik labels controlled by matrix_cactus_comments_client_container_labels_traefik_* variables>'}
  13. - {'old': 'matrix_cactus_comments_client_path', 'new': 'matrix_cactus_comments_client_base_path'}
  14. - {'old': 'matrix_cactus_comments_serve_client_enabled', 'new': 'matrix_cactus_comments_client_enabled'}
  15. - name: Fail if required matrix-cactus-comments settings not defined
  16. ansible.builtin.fail:
  17. msg: >-
  18. You need to define a required configuration setting (`{{ item }}`).
  19. when: "vars[item] == ''"
  20. with_items:
  21. - "matrix_cactus_comments_as_token"
  22. - "matrix_cactus_comments_hs_token"
  23. - "matrix_cactus_comments_homeserver_url"
  24. - "matrix_cactus_comments_container_network"