parent
bf95204860
commit
dddfee16bc
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: etherpad_enabled | bool and etherpad_nginx_proxy_dimension_integration_enabled | bool
|
- when: etherpad_enabled | bool and etherpad_nginx_proxy_dimension_integration_enabled | bool
|
||||||
block:
|
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
||||||
|
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
|
||||||
tags:
|
tags:
|
||||||
- install-all
|
- install-all
|
||||||
- setup-all
|
- setup-all
|
||||||
- install-nginx-proxy
|
- install-nginx-proxy
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-aux-files
|
- setup-aux-files
|
||||||
- install-all
|
- install-all
|
||||||
- install-aux-files
|
- install-aux-files
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: matrix_heisenbridge_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-heisenbridge
|
- setup-heisenbridge
|
||||||
- install-all
|
- install-all
|
||||||
- install-heisenbridge
|
- install-heisenbridge
|
||||||
|
block:
|
||||||
|
- when: matrix_heisenbridge_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_heisenbridge_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-heisenbridge
|
- setup-heisenbridge
|
||||||
|
block:
|
||||||
|
- when: not matrix_heisenbridge_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
|
|
||||||
tags:
|
|
||||||
- run-docker-prune
|
- run-docker-prune
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: matrix_conduit_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-conduit
|
- setup-conduit
|
||||||
- install-all
|
- install-all
|
||||||
- install-conduit
|
- install-conduit
|
||||||
|
block:
|
||||||
|
- when: matrix_conduit_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_conduit_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-conduit
|
- setup-conduit
|
||||||
|
block:
|
||||||
|
- when: not matrix_conduit_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: matrix_mailer_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mailer
|
- setup-mailer
|
||||||
- install-all
|
- install-all
|
||||||
- install-mailer
|
- install-mailer
|
||||||
|
block:
|
||||||
|
- when: matrix_mailer_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_mailer_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mailer
|
- setup-mailer
|
||||||
|
block:
|
||||||
|
- when: not matrix_mailer_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Fail if matrix-nginx-proxy role executed before matrix-prometheus-services-proxy-connect
|
- name: Fail if matrix-nginx-proxy role executed before matrix-prometheus-services-proxy-connect
|
||||||
|
when: matrix_nginx_proxy_role_executed | default(False) | bool
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: >-
|
msg: >-
|
||||||
Trying to append node-exporter's reverse-proxying configuration to matrix-nginx-proxy,
|
Trying to append node-exporter's reverse-proxying configuration to matrix-nginx-proxy,
|
||||||
but it's pointless since the matrix-nginx-proxy role had already executed.
|
but it's pointless since the matrix-nginx-proxy role had already executed.
|
||||||
To fix this, please change the order of roles in your playbook,
|
To fix this, please change the order of roles in your playbook,
|
||||||
so that the matrix-nginx-proxy role would run after the matrix-prometheus-services-proxy-connect role.
|
so that the matrix-nginx-proxy role would run after the matrix-prometheus-services-proxy-connect role.
|
||||||
when: matrix_nginx_proxy_role_executed | default(False) | bool
|
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-node-exporter/inject_into_nginx_proxy.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
- install-all
|
- install-all
|
||||||
- install-nginx-proxy
|
- install-nginx-proxy
|
||||||
|
block:
|
||||||
|
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-node-exporter/inject_into_nginx_proxy.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-postgres-exporter/inject_into_nginx_proxy.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
- install-all
|
- install-all
|
||||||
- install-nginx-proxy
|
- install-nginx-proxy
|
||||||
|
block:
|
||||||
|
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-postgres-exporter/inject_into_nginx_proxy.yml"
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: matrix_synapse_reverse_proxy_companion_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse-reverse-proxy-companion
|
- setup-synapse-reverse-proxy-companion
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
- install-all
|
- install-all
|
||||||
- install-synapse-reverse-proxy-companion
|
- install-synapse-reverse-proxy-companion
|
||||||
- install-synapse
|
- install-synapse
|
||||||
|
block:
|
||||||
|
- when: matrix_synapse_reverse_proxy_companion_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_reverse_proxy_companion_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse-reverse-proxy-companion
|
- setup-synapse-reverse-proxy-companion
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_reverse_proxy_companion_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
|
@ -1,52 +1,52 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# encryption-disabler
|
# encryption-disabler
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_encryption_disabler_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_encryption_disabler_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_uninstall.yml"
|
||||||
|
|
||||||
# rest-auth
|
# rest-auth
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_password_provider_rest_auth_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_password_provider_rest_auth_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_uninstall.yml"
|
||||||
|
|
||||||
# shared-secret-auth
|
# shared-secret-auth
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_uninstall.yml"
|
||||||
|
|
||||||
# ldap-auth has no uninstall tasks
|
# ldap-auth has no uninstall tasks
|
||||||
|
|
||||||
|
|
||||||
# synapse-simple-antispam
|
# synapse-simple-antispam
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_uninstall.yml"
|
||||||
|
|
||||||
# mjolnir-antispam
|
# mjolnir-antispam
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_uninstall.yml"
|
||||||
|
|
||||||
# s3-storage-provider
|
# s3-storage-provider
|
||||||
- block:
|
- tags:
|
||||||
- when: not matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_uninstall.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-synapse
|
- setup-synapse
|
||||||
|
block:
|
||||||
|
- when: not matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_uninstall.yml"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- when: matrix_user_creator_users | length > 0
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
|
|
||||||
tags:
|
|
||||||
# This role intentionally doesn't do work on a `setup-all` tag.
|
# This role intentionally doesn't do work on a `setup-all` tag.
|
||||||
# If it did, the initial installation (`--tags=setup-all`) would also potentially polute the database with data,
|
# If it did, the initial installation (`--tags=setup-all`) would also potentially polute the database with data,
|
||||||
# which would make importing a database dump problematic.
|
# which would make importing a database dump problematic.
|
||||||
- ensure-matrix-users-created
|
- ensure-matrix-users-created
|
||||||
|
block:
|
||||||
|
- when: matrix_user_creator_users | length > 0
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- install-all
|
- install-all
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
|
||||||
- block:
|
- tags:
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
- setup-all
|
||||||
- install-all
|
- install-all
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
|
||||||
|
|
||||||
- when: devture_traefik_enabled | bool
|
- when: devture_traefik_enabled | bool
|
||||||
block:
|
|
||||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/devture_traefik_to_matrix_traefik.yml"
|
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- install-all
|
- install-all
|
||||||
- setup-traefik
|
- setup-traefik
|
||||||
- install-traefik
|
- install-traefik
|
||||||
|
block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/devture_traefik_to_matrix_traefik.yml"
|
||||||
|
Loading…
Reference in new issue