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.
 
 

81 line
2.5 KiB

  1. ---
  2. - tags:
  3. - setup-all
  4. - setup-synapse
  5. - install-all
  6. - install-synapse
  7. - setup-synapse-reverse-proxy-companion
  8. - install-synapse-reverse-proxy-companion
  9. - start
  10. - start-all
  11. - start-group
  12. - restart
  13. - restart-all
  14. - restart-group
  15. - stop
  16. - stop-all
  17. - stop-group
  18. block:
  19. - when: matrix_synapse_enabled | bool
  20. ansible.builtin.include_tasks: "{{ role_path }}/tasks/init.yml"
  21. - tags:
  22. - setup-all
  23. - setup-synapse
  24. - install-all
  25. - install-synapse
  26. block:
  27. - when: matrix_synapse_enabled | bool
  28. ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
  29. - when: matrix_synapse_enabled | bool and run_setup | bool
  30. ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
  31. - tags:
  32. - setup-all
  33. - setup-synapse
  34. block:
  35. # This always runs because it handles uninstallation for sub-components too.
  36. - when: not matrix_synapse_enabled | bool and run_setup | bool
  37. ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
  38. - tags:
  39. - import-synapse-media-store
  40. block:
  41. - when: matrix_synapse_enabled | bool and run_synapse_import_media_store | bool
  42. ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_media_store.yml"
  43. - tags:
  44. - import-synapse-sqlite-db
  45. block:
  46. - when: matrix_synapse_enabled | bool and run_synapse_import_sqlite_db
  47. ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
  48. - tags:
  49. - register-user
  50. block:
  51. - when: matrix_synapse_enabled | bool and run_synapse_register_user | bool
  52. ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
  53. - tags:
  54. - update-user-password
  55. block:
  56. - when: matrix_synapse_enabled | bool and run_synapse_update_user_password | bool
  57. ansible.builtin.include_tasks: "{{ role_path }}/tasks/update_user_password.yml"
  58. - tags:
  59. - rust-synapse-compress-state
  60. block:
  61. - when: matrix_synapse_enabled | bool and run_synapse_rust_synapse_compress_state | bool
  62. ansible.builtin.include_tasks: "{{ role_path }}/tasks/rust-synapse-compress-state/main.yml"
  63. - tags:
  64. - self-check
  65. block:
  66. - when: matrix_synapse_enabled | bool and run_self_check | bool
  67. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
  68. - when: matrix_synapse_enabled | bool and run_self_check | bool
  69. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"