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.
 
 

58 lines
1.9 KiB

  1. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - tags:
  6. - setup-all
  7. - setup-matrix-authentication-service
  8. - install-all
  9. - install-matrix-authentication-service
  10. - matrix-authentication-service-mas-cli-syn2mas
  11. block:
  12. - when: matrix_authentication_service_enabled | bool
  13. ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
  14. - tags:
  15. - setup-all
  16. - setup-matrix-authentication-service
  17. - install-all
  18. - install-matrix-authentication-service
  19. block:
  20. - when: matrix_authentication_service_enabled | bool
  21. ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
  22. # The tag 'matrix-authentication-service-syn2mas' has been replaced by the tag 'matrix-authentication-service-mas-cli-syn2mas'.
  23. - tags:
  24. - matrix-authentication-service-syn2mas
  25. block:
  26. - name: Warn about deprecated tag
  27. ansible.builtin.fail:
  28. msg: "WARNING: The 'matrix-authentication-service-syn2mas' tag has been replaced by 'matrix-authentication-service-mas-cli-syn2mas'. Please update your command."
  29. - tags:
  30. - matrix-authentication-service-mas-cli-syn2mas
  31. block:
  32. - when: matrix_authentication_service_enabled | bool
  33. ansible.builtin.include_tasks: "{{ role_path }}/tasks/mas_cli_syn2mas.yml"
  34. - tags:
  35. - matrix-authentication-service-mas-cli-doctor
  36. block:
  37. - when: matrix_authentication_service_enabled | bool
  38. ansible.builtin.include_tasks: "{{ role_path }}/tasks/mas_cli_doctor.yml"
  39. - tags:
  40. - register-user
  41. block:
  42. - when: matrix_authentication_service_enabled | bool
  43. ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
  44. - tags:
  45. - setup-all
  46. - setup-matrix-authentication-service
  47. block:
  48. - when: not matrix_authentication_service_enabled | bool
  49. ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"