mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 04:37:36 +01:00
Merge b3cfa43b8e
into 5ec468cc78
This commit is contained in:
commit
c485ee1587
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
# A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
|
# A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
|
||||||
# Project source code URL: https://github.com/matrix-org/matrix-hookshot
|
# Project source code URL: https://github.com/matrix-org/matrix-hookshot
|
||||||
|
#
|
||||||
|
run_reset_encryption: true
|
||||||
|
run_setup: true
|
||||||
|
|
||||||
matrix_hookshot_enabled: true
|
matrix_hookshot_enabled: true
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- tags:
|
- tags:
|
||||||
- reset-hookshot-encryption
|
- reset-hookshot-encryption
|
||||||
block:
|
block:
|
||||||
- when: matrix_hookshot_enabled | bool
|
- when: matrix_hookshot_enabled | bool and run_reset_encryption | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/reset_encryption.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/reset_encryption.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
@ -14,10 +14,10 @@
|
|||||||
- install-hookshot
|
- install-hookshot
|
||||||
- install-bridge-hookshot
|
- install-bridge-hookshot
|
||||||
block:
|
block:
|
||||||
- when: matrix_hookshot_enabled | bool
|
- when: matrix_hookshot_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
|
||||||
- when: matrix_hookshot_enabled | bool
|
- when: matrix_hookshot_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
@ -25,5 +25,5 @@
|
|||||||
- setup-hookshot
|
- setup-hookshot
|
||||||
- setup-bridge-hookshot
|
- setup-bridge-hookshot
|
||||||
block:
|
block:
|
||||||
- when: not matrix_hookshot_enabled | bool
|
- when: not matrix_hookshot_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
matrix_client_element_enabled: true
|
matrix_client_element_enabled: true
|
||||||
|
|
||||||
|
run_setup: true
|
||||||
|
run_self_check: true
|
||||||
|
|
||||||
matrix_client_element_container_image_self_build: false
|
matrix_client_element_container_image_self_build: false
|
||||||
matrix_client_element_container_image_self_build_repo: "https://github.com/element-hq/element-web.git"
|
matrix_client_element_container_image_self_build_repo: "https://github.com/element-hq/element-web.git"
|
||||||
# Controls whether to patch webpack.config.js when self-building, so that building can pass on low-memory systems (< 4 GB RAM):
|
# Controls whether to patch webpack.config.js when self-building, so that building can pass on low-memory systems (< 4 GB RAM):
|
||||||
|
@ -12,18 +12,18 @@
|
|||||||
- when: matrix_client_element_enabled | bool
|
- when: matrix_client_element_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prepare_themes.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prepare_themes.yml"
|
||||||
|
|
||||||
- when: matrix_client_element_enabled | bool
|
- when: matrix_client_element_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-client-element
|
- setup-client-element
|
||||||
block:
|
block:
|
||||||
- when: not matrix_client_element_enabled | bool
|
- when: not matrix_client_element_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- self-check
|
- self-check
|
||||||
block:
|
block:
|
||||||
- when: matrix_client_element_enabled | bool
|
- when: matrix_client_element_enabled | bool and run_self_check | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# matrix-static-files is a role which generates and serves `/.well-known/matrix` files for the purposes of Matrix Delegation.
|
# matrix-static-files is a role which generates and serves `/.well-known/matrix` files for the purposes of Matrix Delegation.
|
||||||
# It also exposes some variables which allow this role to be used for serving additional files.
|
# It also exposes some variables which allow this role to be used for serving additional files.
|
||||||
|
|
||||||
|
run_self_check: true
|
||||||
matrix_static_files_enabled: true
|
matrix_static_files_enabled: true
|
||||||
|
|
||||||
matrix_static_files_identifier: matrix-static-files
|
matrix_static_files_identifier: matrix-static-files
|
||||||
|
@ -23,4 +23,5 @@
|
|||||||
- self-check
|
- self-check
|
||||||
- self-check-matrix-static-files
|
- self-check-matrix-static-files
|
||||||
block:
|
block:
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known.yml"
|
- when: run_self_check | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known.yml"
|
||||||
|
@ -21,6 +21,16 @@ matrix_synapse_version: v1.114.0
|
|||||||
matrix_synapse_username: ''
|
matrix_synapse_username: ''
|
||||||
matrix_synapse_uid: ''
|
matrix_synapse_uid: ''
|
||||||
matrix_synapse_gid: ''
|
matrix_synapse_gid: ''
|
||||||
|
# Variables to control which part of the role is run
|
||||||
|
# By default they are all true and filtering is done with tags
|
||||||
|
# these variables are for use from other playbooks etc
|
||||||
|
run_setup: true
|
||||||
|
run_self_check: true
|
||||||
|
run_synapse_register_user: true
|
||||||
|
run_synapse_update_user_password: true
|
||||||
|
run_synapse_import_media_store: true
|
||||||
|
run_synapse_rust_synapse_compress_state: true
|
||||||
|
run_synapse_import_sqlite_db: true
|
||||||
|
|
||||||
matrix_synapse_container_image_self_build: false
|
matrix_synapse_container_image_self_build: false
|
||||||
matrix_synapse_container_image_self_build_repo: "https://github.com/{{ matrix_synapse_github_org_and_repo }}.git"
|
matrix_synapse_container_image_self_build_repo: "https://github.com/{{ matrix_synapse_github_org_and_repo }}.git"
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_setup | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
@ -37,43 +37,44 @@
|
|||||||
- setup-synapse
|
- setup-synapse
|
||||||
block:
|
block:
|
||||||
# This always runs because it handles uninstallation for sub-components too.
|
# This always runs because it handles uninstallation for sub-components too.
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_synapse_enabled | bool and run_setup | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- import-synapse-media-store
|
- import-synapse-media-store
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_synapse_import_media_store | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_media_store.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_media_store.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- import-synapse-sqlite-db
|
- import-synapse-sqlite-db
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_synapse_import_sqlite_db
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- register-user
|
- register-user
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_synapse_register_user | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- update-user-password
|
- update-user-password
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_synapse_update_user_password | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/update_user_password.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/update_user_password.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- rust-synapse-compress-state
|
- rust-synapse-compress-state
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_synapse_rust_synapse_compress_state | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/rust-synapse-compress-state/main.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/rust-synapse-compress-state/main.yml"
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- self-check
|
- self-check
|
||||||
block:
|
block:
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_self_check | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
|
||||||
|
|
||||||
- when: matrix_synapse_enabled | bool
|
- when: matrix_synapse_enabled | bool and run_self_check | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user