mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 06:22:51 +01:00
Remove various init.yml files - initialize systemd services, etc., statically (not at runtime)
This commit is contained in:
parent
97ee2230a9
commit
0ea7cb5d18
@ -19,6 +19,254 @@
|
|||||||
# Also see `devture_docker_sdk_for_python_installation_enabled`.
|
# Also see `devture_docker_sdk_for_python_installation_enabled`.
|
||||||
matrix_playbook_docker_installation_enabled: true
|
matrix_playbook_docker_installation_enabled: true
|
||||||
|
|
||||||
|
# This list is not exhaustive and final.
|
||||||
|
# Synapse workers are still injected into the list at runtime.
|
||||||
|
# Additional JVB workers (playbooks/jitsi_jvb.yml -- roles/custom/matrix-jitsi/tasks/init_additional_jvb.yml) override this variable at runtime as well.
|
||||||
|
matrix_systemd_services_list: |
|
||||||
|
{{
|
||||||
|
(['matrix-backup-borg.timer'] if matrix_backup_borg_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-buscarron.service'] if matrix_bot_buscarron_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-go-neb.service'] if matrix_bot_go_neb_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-honoroit.service'] if matrix_bot_honoroit_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-matrix-registration-bot.service'] if matrix_bot_matrix_registration_bot_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-matrix-reminder-bot.service'] if matrix_bot_matrix_reminder_bot_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-maubot.service'] if matrix_bot_maubot_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-mjolnir.service'] if matrix_bot_mjolnir_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-bot-postmoogle.service'] if matrix_bot_postmoogle_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-appservice-discord.service'] if matrix_appservice_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-appservice-irc.service'] if matrix_appservice_irc_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-appservice-kakaotalk.service', 'matrix-appservice-kakaotalk-node.service'] if matrix_appservice_kakaotalk_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-appservice-slack.service'] if matrix_appservice_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-appservice-webhooks.service'] if matrix_appservice_webhooks_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-beeper-linkedin.service'] if matrix_beeper_linkedin_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-go-skype-bridge.service'] if matrix_go_skype_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-heisenbridge.service'] if matrix_heisenbridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-hookshot.service'] if matrix_hookshot_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-discord.service'] if matrix_mautrix_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-facebook.service'] if matrix_mautrix_facebook_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-googlechat.service'] if matrix_mautrix_googlechat_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-hangouts.service'] if matrix_mautrix_hangouts_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-instagram.service'] if matrix_mautrix_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-signal.service', 'matrix-mautrix-signal-daemon.service'] if matrix_mautrix_signal_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-telegram.service'] if matrix_mautrix_telegram_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-twitter.service'] if matrix_mautrix_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mautrix-whatsapp.service'] if matrix_mautrix_whatsapp_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-discord.service'] if matrix_mx_puppet_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-groupme.service'] if matrix_mx_puppet_groupme_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-instagram.service'] if matrix_mx_puppet_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-slack.service'] if matrix_mx_puppet_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-steam.service'] if matrix_mx_puppet_steam_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mx-puppet-twitter.service'] if matrix_mx_puppet_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-sms-bridge.service'] if matrix_sms_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-cactus-comments.service'] if matrix_cactus_comments_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-client-cinny.service'] if matrix_client_cinny_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-client-element.service'] if matrix_client_element_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-client-hydrogen.service'] if matrix_client_hydrogen_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-' + matrix_homeserver_implementation + '.service'])
|
||||||
|
+
|
||||||
|
(['matrix-corporal.service'] if matrix_corporal_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-coturn.service'] if matrix_coturn_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-coturn-reload.timer'] if (matrix_coturn_enabled and matrix_coturn_tls_enabled) else [])
|
||||||
|
+
|
||||||
|
(['matrix-dimension.service'] if matrix_dimension_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-dynamic-dns.service'] if matrix_dynamic_dns_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-email2matrix.service'] if matrix_email2matrix_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-etherpad.service'] if matrix_etherpad_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-grafana.service'] if matrix_grafana_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-jitsi-web.service', 'matrix-jitsi-prosody.service', 'matrix-jitsi-jicofo.service', 'matrix-jitsi-jvb.service'] if matrix_jitsi_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-ldap-registration-proxy.service'] if matrix_ldap_registration_proxy_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-ma1sd.service'] if matrix_ma1sd_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-mailer.service'] if matrix_mailer_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
|
||||||
|
+
|
||||||
|
(matrix_ssl_renewal_systemd_units_list | selectattr('applicable') | map(attribute='name'))
|
||||||
|
+
|
||||||
|
(['matrix-ntfy.service'] if matrix_ntfy_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-postgres.service'] if matrix_postgres_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-postgres-backup.service'] if matrix_postgres_backup_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-prometheus.service'] if matrix_prometheus_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-prometheus-node-exporter.service'] if matrix_prometheus_node_exporter_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-prometheus-postgres-exporter.service'] if matrix_prometheus_postgres_exporter_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-redis'] if matrix_redis_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-registration.service'] if matrix_registration_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-sygnal.service'] if matrix_sygnal_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-goofys.service'] if matrix_s3_media_store_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-synapse-s3-storage-provider-migrate.timer'] if matrix_synapse_ext_synapse_s3_storage_provider_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-synapse-admin.service'] if matrix_synapse_admin_enabled else [])
|
||||||
|
+
|
||||||
|
(['matrix-synapse-reverse-proxy-companion.service'] if matrix_synapse_reverse_proxy_companion_enabled else [])
|
||||||
|
}}
|
||||||
|
|
||||||
|
matrix_homeserver_app_service_config_files_auto: |
|
||||||
|
{{
|
||||||
|
(['--mount type=bind,src=' + matrix_appservice_discord_config_path + '/registration.yaml,dst=/matrix-appservice-discord-registration.yaml,ro'] if matrix_appservice_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_appservice_irc_config_path + '/registration.yaml,dst=/matrix-appservice-irc-registration.yaml,ro'] if matrix_appservice_irc_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_appservice_kakaotalk_config_path + '/registration.yaml,dst=/matrix-appservice-kakaotalk-registration.yaml,ro'] if matrix_appservice_kakaotalk_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_appservice_slack_config_path + '/slack-registration.yaml,dst=/matrix-appservice-slack-registration.yaml,ro'] if matrix_appservice_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_appservice_webhooks_config_path + '/webhooks-registration.yaml,dst=/matrix-appservice-webhooks-registration.yaml,ro'] if matrix_appservice_webhooks_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_beeper_linkedin_config_path + '/registration.yaml,dst=/matrix-beeper-linkedin-registration.yaml,ro'] if matrix_beeper_linkedin_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_go_skype_bridge_config_path + '/registration.yaml,dst=/matrix-go-skype-bridge-registration.yaml,ro'] if matrix_go_skype_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_heisenbridge_base_path + '/registration.yaml,dst=/heisenbridge-registration.yaml,ro'] if matrix_heisenbridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_hookshot_base_path + '/registration.yml,dst=/hookshot-registration.yml,ro'] if matrix_hookshot_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_discord_config_path + '/registration.yaml,dst=/matrix-mautrix-discord-registration.yaml,ro'] if matrix_mautrix_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_facebook_config_path + '/registration.yaml,dst=/matrix-mautrix-facebook-registration.yaml,ro'] if matrix_mautrix_facebook_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_googlechat_config_path + '/registration.yaml,dst=/matrix-mautrix-googlechat-registration.yaml,ro'] if matrix_mautrix_googlechat_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_hangouts_config_path + '/registration.yaml,dst=/matrix-mautrix-hangouts-registration.yaml,ro'] if matrix_mautrix_hangouts_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_instagram_config_path + '/registration.yaml,dst=/matrix-mautrix-instagram-registration.yaml,ro'] if matrix_mautrix_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_signal_config_path + '/registration.yaml,dst=/matrix-mautrix-signal-registration.yaml,ro'] if matrix_mautrix_signal_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_telegram_config_path + '/registration.yaml,dst=/matrix-mautrix-telegram-registration.yaml,ro'] if matrix_mautrix_telegram_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_twitter_config_path + '/registration.yaml,dst=/matrix-mautrix-twitter-registration.yaml,ro'] if matrix_mautrix_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mautrix_whatsapp_config_path + '/registration.yaml,dst=/matrix-mautrix-whatsapp-registration.yaml,ro'] if matrix_mautrix_whatsapp_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_discord_config_path + '/registration.yaml,dst=/matrix-mx-puppet-discord-registration.yaml,ro'] if matrix_mx_puppet_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_groupme_config_path + '/registration.yaml,dst=/matrix-mx-puppet-groupme-registration.yaml,ro'] if matrix_mx_puppet_groupme_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_instagram_config_path + '/registration.yaml,dst=/matrix-mx-puppet-instagram-registration.yaml,ro'] if matrix_mx_puppet_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_slack_config_path + '/registration.yaml,dst=/matrix-mx-puppet-slack-registration.yaml,ro'] if matrix_mx_puppet_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_steam_config_path + '/registration.yaml,dst=/matrix-mx-puppet-steam-registration.yaml,ro'] if matrix_mx_puppet_steam_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_mx_puppet_twitter_config_path + '/registration.yaml,dst=/matrix-mx-puppet-twitter-registration.yaml,ro'] if matrix_mx_puppet_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_sms_bridge_config_path + '/registration.yaml,dst=/matrix-sms-bridge-registration.yaml,ro'] if matrix_sms_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['--mount type=bind,src=' + matrix_cactus_comments_app_service_config_file + ',dst=/matrix-cactus-comments.yaml,ro'] if matrix_cactus_comments_enabled else [])
|
||||||
|
}}
|
||||||
|
|
||||||
|
matrix_homeserver_additional_config_files_auto: |
|
||||||
|
{{
|
||||||
|
(['/matrix-appservice-discord-registration.yaml'] if matrix_appservice_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-appservice-irc-registration.yaml'] if matrix_appservice_irc_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-appservice-kakaotalk-registration.yaml'] if matrix_appservice_kakaotalk_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-appservice-slack-registration.yaml'] if matrix_appservice_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-appservice-webhooks-registration.yaml'] if matrix_appservice_webhooks_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-beeper-linkedin-registration.yaml'] if matrix_beeper_linkedin_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-go-skype-bridge-registration.yaml'] if matrix_go_skype_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['/heisenbridge-registration.yaml'] if matrix_heisenbridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['/hookshot-registration.yml'] if matrix_hookshot_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-discord-registration.yaml'] if matrix_mautrix_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-facebook-registration.yaml'] if matrix_mautrix_facebook_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-googlechat-registration.yaml'] if matrix_mautrix_googlechat_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-hangouts-registration.yaml'] if matrix_mautrix_hangouts_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-instagram-registration.yaml'] if matrix_mautrix_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-signal-registration.yaml'] if matrix_mautrix_signal_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-telegram-registration.yaml'] if matrix_mautrix_telegram_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-twitter-registration.yaml'] if matrix_mautrix_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mautrix-whatsapp-registration.yaml'] if matrix_mautrix_whatsapp_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-discord-registration.yaml'] if matrix_mx_puppet_discord_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-groupme-registration.yaml'] if matrix_mx_puppet_groupme_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-instagram-registration.yaml'] if matrix_mx_puppet_instagram_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-slack-registration.yaml'] if matrix_mx_puppet_slack_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-steam-registration.yaml'] if matrix_mx_puppet_steam_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-mx-puppet-twitter-registration.yaml'] if matrix_mx_puppet_twitter_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-sms-bridge-registration.yaml'] if matrix_sms_bridge_enabled else [])
|
||||||
|
+
|
||||||
|
(['/matrix-cactus-comments.yaml'] if matrix_cactus_comments_enabled else [])
|
||||||
|
}}
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# #
|
# #
|
||||||
# /Playbook #
|
# /Playbook #
|
||||||
@ -2413,8 +2661,8 @@ matrix_synapse_redis_enabled: "{{ matrix_redis_enabled }}"
|
|||||||
matrix_synapse_redis_host: "{{ 'matrix-redis' if matrix_redis_enabled else '' }}"
|
matrix_synapse_redis_host: "{{ 'matrix-redis' if matrix_redis_enabled else '' }}"
|
||||||
matrix_synapse_redis_password: "{{ matrix_redis_connection_password if matrix_redis_enabled else '' }}"
|
matrix_synapse_redis_password: "{{ matrix_redis_connection_password if matrix_redis_enabled else '' }}"
|
||||||
|
|
||||||
matrix_synapse_container_runtime_injected_arguments: "{{ matrix_homeserver_container_runtime_injected_arguments }}"
|
matrix_synapse_container_extra_arguments_auto: "{{ matrix_homeserver_container_extra_arguments_auto }}"
|
||||||
matrix_synapse_app_service_runtime_injected_config_files: "{{ matrix_homeserver_app_service_runtime_injected_config_files }}"
|
matrix_synapse_app_service_config_files_auto: "{{ matrix_homeserver_app_service_config_files_auto }}"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
@ -2723,8 +2971,8 @@ matrix_dendrite_systemd_wanted_services_list: |
|
|||||||
(['matrix-coturn.service'] if matrix_coturn_enabled else [])
|
(['matrix-coturn.service'] if matrix_coturn_enabled else [])
|
||||||
}}
|
}}
|
||||||
|
|
||||||
matrix_dendrite_container_runtime_injected_arguments: "{{ matrix_homeserver_container_runtime_injected_arguments }}"
|
matrix_dendrite_container_extra_arguments_auto: "{{ matrix_homeserver_container_extra_arguments_auto }}"
|
||||||
matrix_dendrite_app_service_runtime_injected_config_files: "{{ matrix_homeserver_app_service_runtime_injected_config_files }}"
|
matrix_dendrite_app_service_config_files_auto: "{{ matrix_homeserver_app_service_config_files_auto }}"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-backup-borg.timer'] }}"
|
|
||||||
when: matrix_backup_borg_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -253,6 +253,13 @@ matrix_well_known_matrix_server_enabled: true
|
|||||||
# See `matrix_homeserver_admin_contacts`, `matrix_homeserver_support_url`, etc.
|
# See `matrix_homeserver_admin_contacts`, `matrix_homeserver_support_url`, etc.
|
||||||
matrix_well_known_matrix_support_enabled: false
|
matrix_well_known_matrix_support_enabled: false
|
||||||
|
|
||||||
|
# This will contain a list of enabled services that the playbook is managing.
|
||||||
|
# Each component is expected to append its service name to this list.
|
||||||
|
matrix_systemd_services_list: []
|
||||||
|
|
||||||
|
matrix_homeserver_container_extra_arguments_auto: []
|
||||||
|
matrix_homeserver_app_service_config_files_auto: []
|
||||||
|
|
||||||
# Variables to Control which parts of our roles run.
|
# Variables to Control which parts of our roles run.
|
||||||
run_postgres_import: true
|
run_postgres_import: true
|
||||||
run_postgres_upgrade: true
|
run_postgres_upgrade: true
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
# This will contain a list of enabled services that the playbook is managing.
|
|
||||||
# Each component is expected to append its service name to this list.
|
|
||||||
matrix_systemd_services_list: []
|
|
||||||
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: []
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: []
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-buscarron.service'] }}"
|
|
||||||
when: matrix_bot_buscarron_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-go-neb.service'] }}"
|
|
||||||
when: matrix_bot_go_neb_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-honoroit.service'] }}"
|
|
||||||
when: matrix_bot_honoroit_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-registration-bot.service'] }}"
|
|
||||||
when: matrix_bot_matrix_registration_bot_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
|
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-reminder-bot.service'] }}"
|
|
||||||
when: matrix_bot_matrix_reminder_bot_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
|
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Add maubot to the systemd service list
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-maubot.service'] }}"
|
|
||||||
when: matrix_bot_maubot_enabled | bool
|
|
||||||
|
|
||||||
- name: Configure nginx for maubot
|
- name: Configure nginx for maubot
|
||||||
block:
|
block:
|
||||||
- name: Generate Maubot proxying configuration for matrix-nginx-proxy
|
- name: Generate Maubot proxying configuration for matrix-nginx-proxy
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mjolnir image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_bot_mjolnir_container_image_self_build and matrix_bot_mjolnir_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-mjolnir.service'] }}"
|
|
||||||
when: matrix_bot_mjolnir_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
|
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-postmoogle.service'] }}"
|
|
||||||
when: matrix_bot_postmoogle_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_bot_postmoogle_enabled | bool"
|
when: "run_setup | bool and matrix_bot_postmoogle_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-discord role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_appservice_discord_enabled and matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-discord.service'] }}"
|
|
||||||
when: matrix_appservice_discord_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_appservice_discord_config_path }}/registration.yaml,dst=/matrix-appservice-discord-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-appservice-discord-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_appservice_discord_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
|
when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the matrix-appservice-irc image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_appservice_irc_container_image_self_build and matrix_appservice_irc_enabled"
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-irc role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_appservice_irc_enabled | bool and matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-irc.service'] }}"
|
|
||||||
when: matrix_appservice_irc_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_appservice_irc_config_path }}/registration.yaml,dst=/matrix-appservice-irc-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-appservice-irc-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_appservice_irc_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
|
when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the appservice-kakaotalk image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_appservice_kakaotalk_container_image_self_build and matrix_appservice_kakaotalk_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-kakaotalk.service', 'matrix-appservice-kakaotalk-node.service'] }}"
|
|
||||||
when: matrix_appservice_kakaotalk_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_appservice_kakaotalk_config_path }}/registration.yaml,dst=/matrix-appservice-kakaotalk-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-appservice-kakaotalk-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_appservice_kakaotalk_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_appservice_kakaotalk_enabled | bool"
|
when: "run_setup | bool and matrix_appservice_kakaotalk_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,47 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the matrix-appservice-slack image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_appservice_slack_container_image_self_build and matrix_appservice_slack_enabled"
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-slack role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-slack.service'] }}"
|
|
||||||
when: matrix_appservice_slack_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_appservice_slack_config_path }}/slack-registration.yaml,dst=/matrix-appservice-slack-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-appservice-slack-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_appservice_slack_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-slack role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- when: matrix_appservice_slack_enabled | bool
|
- when: matrix_appservice_slack_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,40 +1,4 @@
|
|||||||
---
|
---
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-webhooks role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-webhooks.service'] }}"
|
|
||||||
when: matrix_appservice_webhooks_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_appservice_webhooks_config_path }}/webhooks-registration.yaml,dst=/matrix-appservice-webhooks-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-appservice-webhooks-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_appservice_webhooks_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-appservice-webhooks role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- when: matrix_appservice_webhooks_enabled | bool
|
- when: matrix_appservice_webhooks_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-beeper-linkedin.service'] }}"
|
|
||||||
when: matrix_beeper_linkedin_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_beeper_linkedin_config_path }}/registration.yaml,dst=/matrix-beeper-linkedin-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-beeper-linkedin-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_beeper_linkedin_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_beeper_linkedin_enabled | bool"
|
when: "run_setup | bool and matrix_beeper_linkedin_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-go-skype-bridge.service'] }}"
|
|
||||||
when: matrix_go_skype_bridge_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_go_skype_bridge_config_path }}/registration.yaml,dst=/matrix-go-skype-bridge-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-go-skype-bridge-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_go_skype_bridge_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
|
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-heisenbridge role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_heisenbridge_enabled and matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-heisenbridge.service'] }}"
|
|
||||||
when: matrix_heisenbridge_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_heisenbridge_base_path }}/registration.yaml,dst=/heisenbridge-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/heisenbridge-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_heisenbridge_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_heisenbridge_enabled | bool"
|
when: "run_setup | bool and matrix_heisenbridge_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,32 +1,4 @@
|
|||||||
---
|
---
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-bridge-hookshot role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_hookshot_enabled and matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-hookshot.service'] }}"
|
|
||||||
when: matrix_hookshot_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_hookshot_base_path }}/registration.yml,dst=/hookshot-registration.yml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/hookshot-registration.yml"]
|
|
||||||
}}
|
|
||||||
when: matrix_hookshot_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_hookshot_enabled | bool
|
- when: matrix_hookshot_enabled | bool
|
||||||
block:
|
block:
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-discord.service'] }}"
|
|
||||||
when: matrix_mautrix_discord_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_discord_config_path }}/registration.yaml,dst=/matrix-mautrix-discord-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-discord-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_discord_enabled | bool
|
|
@ -1,7 +1,4 @@
|
|||||||
---
|
---
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mautrix_discord_enabled | bool"
|
when: "run_setup | bool and matrix_mautrix_discord_enabled | bool"
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mautrix-Facebook image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_facebook_container_image_self_build and matrix_mautrix_facebook_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-facebook.service'] }}"
|
|
||||||
when: matrix_mautrix_facebook_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_facebook_config_path }}/registration.yaml,dst=/matrix-mautrix-facebook-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-facebook-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_facebook_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mautrix_facebook_enabled | bool and matrix_mautrix_facebook_appservice_public_enabled | bool
|
- when: matrix_mautrix_facebook_enabled | bool and matrix_mautrix_facebook_appservice_public_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mautrix-Google Chat image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_googlechat_container_image_self_build and matrix_mautrix_googlechat_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-googlechat.service'] }}"
|
|
||||||
when: matrix_mautrix_googlechat_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_googlechat_config_path }}/registration.yaml,dst=/matrix-mautrix-googlechat-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-googlechat-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_googlechat_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mautrix_googlechat_enabled | bool
|
- when: matrix_mautrix_googlechat_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mautrix-Hangouts image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_hangouts_container_image_self_build and matrix_mautrix_hangouts_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-hangouts.service'] }}"
|
|
||||||
when: matrix_mautrix_hangouts_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_hangouts_config_path }}/registration.yaml,dst=/matrix-mautrix-hangouts-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-hangouts-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_hangouts_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mautrix_hangouts_enabled | bool
|
- when: matrix_mautrix_hangouts_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mautrix-Instagram image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_instagram_container_image_self_build and matrix_mautrix_instagram_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-instagram.service'] }}"
|
|
||||||
when: matrix_mautrix_instagram_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_instagram_config_path }}/registration.yaml,dst=/matrix-mautrix-instagram-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-instagram-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_instagram_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
|
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-signal.service', 'matrix-mautrix-signal-daemon.service'] }}"
|
|
||||||
when: matrix_mautrix_signal_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_signal_config_path }}/registration.yaml,dst=/matrix-mautrix-signal-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-signal-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_signal_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
|
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Mautrix-Telegram image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_telegram_container_image_self_build and matrix_mautrix_telegram_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-telegram.service'] }}"
|
|
||||||
when: matrix_mautrix_telegram_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_telegram_config_path }}/registration.yaml,dst=/matrix-mautrix-telegram-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-telegram-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_telegram_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mautrix_telegram_enabled | bool and matrix_mautrix_telegram_appservice_public_enabled | bool
|
- when: matrix_mautrix_telegram_enabled | bool and matrix_mautrix_telegram_appservice_public_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-twitter.service'] }}"
|
|
||||||
when: matrix_mautrix_twitter_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_twitter_config_path }}/registration.yaml,dst=/matrix-mautrix-twitter-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-twitter-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_twitter_enabled | bool
|
|
||||||
|
|
||||||
# ansible lower than 2.8, does not support docker_image build parameters
|
|
||||||
# for self buildig it is explicitly needed, so we rather fail here
|
|
||||||
- name: Fail if running on Ansible lower than 2.8 and trying self building
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self build Mautrix Twitter image, you should usa ansible 2.8 or higher. E.g. pip contains such packages."
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_twitter_container_image_self_build"
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
|
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-whatsapp.service'] }}"
|
|
||||||
when: matrix_mautrix_whatsapp_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_whatsapp_config_path }}/registration.yaml,dst=/matrix-mautrix-whatsapp-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-whatsapp-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_whatsapp_enabled | bool
|
|
@ -1,7 +1,4 @@
|
|||||||
---
|
---
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mautrix_whatsapp_enabled | bool"
|
when: "run_setup | bool and matrix_mautrix_whatsapp_enabled | bool"
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-discord image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_discord_container_image_self_build and matrix_mx_puppet_discord_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-discord.service'] }}"
|
|
||||||
when: matrix_mx_puppet_discord_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_discord_config_path }}/registration.yaml,dst=/matrix-mx-puppet-discord-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-discord-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_discord_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
|
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-groupme image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_groupme_container_image_self_build and matrix_mx_puppet_groupme_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-groupme.service'] }}"
|
|
||||||
when: matrix_mx_puppet_groupme_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_groupme_config_path }}/registration.yaml,dst=/matrix-mx-puppet-groupme-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-groupme-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_groupme_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
|
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-instagram image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_instagram_container_image_self_build and matrix_mx_puppet_instagram_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-instagram.service'] }}"
|
|
||||||
when: matrix_mx_puppet_instagram_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_instagram_config_path }}/registration.yaml,dst=/matrix-mx-puppet-instagram-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-instagram-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_instagram_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
|
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-slack image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_slack_container_image_self_build and matrix_mx_puppet_slack_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-slack.service'] }}"
|
|
||||||
when: matrix_mx_puppet_slack_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_slack_config_path }}/registration.yaml,dst=/matrix-mx-puppet-slack-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-slack-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_slack_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mx_puppet_slack_enabled | bool
|
- when: matrix_mx_puppet_slack_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-steam image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_steam_container_image_self_build and matrix_mx_puppet_steam_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-steam.service'] }}"
|
|
||||||
when: matrix_mx_puppet_steam_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_steam_config_path }}/registration.yaml,dst=/matrix-mx-puppet-steam-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-steam-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_steam_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
|
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the mx-puppet-twitter image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_twitter_container_image_self_build and matrix_mx_puppet_twitter_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-twitter.service'] }}"
|
|
||||||
when: matrix_mx_puppet_twitter_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mx_puppet_twitter_config_path }}/registration.yaml,dst=/matrix-mx-puppet-twitter-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mx-puppet-twitter-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mx_puppet_twitter_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_mx_puppet_twitter_enabled | bool
|
- when: matrix_mx_puppet_twitter_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
||||||
# We don't want to fail in such cases.
|
|
||||||
- name: Fail if matrix-synapse role already executed
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
The matrix-sms-bridge role needs to execute before the matrix-synapse role.
|
|
||||||
when: "matrix_sms_bridge_enabled and matrix_synapse_role_executed | default(False)"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-sms-bridge.service'] }}"
|
|
||||||
when: matrix_sms_bridge_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_sms_bridge_config_path }}/registration.yaml,dst=/matrix-sms-bridge-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-sms-bridge-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_sms_bridge_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
|
when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,26 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-cactus-comments.service'] }}"
|
|
||||||
when: matrix_cactus_comments_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_cactus_comments_app_service_config_file }},dst=/matrix-cactus-comments.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-cactus-comments.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_cactus_comments_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_cactus_comments_enabled | bool and matrix_cactus_comments_serve_client_enabled | bool
|
- when: matrix_cactus_comments_enabled | bool and matrix_cactus_comments_serve_client_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Cinny image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_client_cinny_container_image_self_build and matrix_client_cinny_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-client-cinny.service'] }}"
|
|
||||||
when: matrix_client_cinny_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_client_cinny_enabled | bool"
|
when: "run_setup | bool and matrix_client_cinny_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-client-element.service'] }}"
|
|
||||||
when: matrix_client_element_enabled | bool
|
|
||||||
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Element image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_client_element_container_image_self_build and matrix_client_element_enabled"
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_client_element_enabled | bool"
|
when: "run_setup | bool and matrix_client_element_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Hydrogen image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_client_hydrogen_container_image_self_build and matrix_client_hydrogen_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-client-hydrogen.service'] }}"
|
|
||||||
when: matrix_client_hydrogen_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
|
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-conduit.service'] }}"
|
|
||||||
when: matrix_conduit_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/conduit/setup.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/conduit/setup.yml"
|
||||||
when: run_setup | bool
|
when: run_setup | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Matrix Corporal image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_corporal_container_image_self_build and matrix_corporal_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-corporal.service'] }}"
|
|
||||||
when: matrix_corporal_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_corporal_enabled | bool"
|
when: "run_setup | bool and matrix_corporal_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the coturn image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_coturn_container_image_self_build and matrix_coturn_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-coturn.service'] }}"
|
|
||||||
when: matrix_coturn_enabled | bool
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-coturn-reload.timer'] }}"
|
|
||||||
when: "matrix_coturn_enabled | bool and matrix_coturn_tls_enabled | bool"
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_coturn_enabled | bool"
|
when: "run_setup | bool and matrix_coturn_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -46,15 +46,15 @@ matrix_dendrite_container_https_host_bind_address: ""
|
|||||||
# Also see `matrix_dendrite_container_arguments`
|
# Also see `matrix_dendrite_container_arguments`
|
||||||
matrix_dendrite_container_extra_arguments: []
|
matrix_dendrite_container_extra_arguments: []
|
||||||
|
|
||||||
# matrix_dendrite_container_runtime_injected_arguments is a list of extra arguments to pass to the container.
|
# matrix_dendrite_container_extra_arguments_auto is a list of extra arguments to pass to the container.
|
||||||
# This list is built during runtime. You're not meant to override this variable.
|
# This list is managed by the playbook. You're not meant to override this variable.
|
||||||
# If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
|
# If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
|
||||||
matrix_dendrite_container_runtime_injected_arguments: []
|
matrix_dendrite_container_extra_arguments_auto: []
|
||||||
|
|
||||||
# matrix_dendrite_container_arguments holds the final list of extra arguments to pass to the container.
|
# matrix_dendrite_container_arguments holds the final list of extra arguments to pass to the container.
|
||||||
# You're not meant to override this variable.
|
# You're not meant to override this variable.
|
||||||
# If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
|
# If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
|
||||||
matrix_dendrite_container_arguments: "{{ matrix_dendrite_container_extra_arguments + matrix_dendrite_container_runtime_injected_arguments }}"
|
matrix_dendrite_container_arguments: "{{ matrix_dendrite_container_extra_arguments + matrix_dendrite_container_extra_arguments_auto }}"
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container process (`dendrite-monolith` command)
|
# A list of extra arguments to pass to the container process (`dendrite-monolith` command)
|
||||||
# Example:
|
# Example:
|
||||||
@ -118,15 +118,15 @@ matrix_dendrite_container_additional_volumes: []
|
|||||||
# Also see `matrix_dendrite_app_service_config_files_final`
|
# Also see `matrix_dendrite_app_service_config_files_final`
|
||||||
matrix_dendrite_app_service_config_files: []
|
matrix_dendrite_app_service_config_files: []
|
||||||
|
|
||||||
# matrix_dendrite_app_service_runtime_injected_config_files is a list of appservice config files.
|
# matrix_dendrite_app_service_config_files_auto is a list of appservice config files.
|
||||||
# This list is built during runtime. You're not meant to override this variable.
|
# This list is managed by the playbook. You're not meant to override this variable.
|
||||||
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
|
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
|
||||||
matrix_dendrite_app_service_runtime_injected_config_files: []
|
matrix_dendrite_app_service_config_files_auto: []
|
||||||
|
|
||||||
# matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
|
# matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
|
||||||
# You're not meant to override this variable.
|
# You're not meant to override this variable.
|
||||||
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
|
# If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
|
||||||
matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_runtime_injected_config_files }}"
|
matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_config_files_auto }}"
|
||||||
|
|
||||||
# Enable exposure of metrics
|
# Enable exposure of metrics
|
||||||
matrix_dendrite_metrics_enabled: false
|
matrix_dendrite_metrics_enabled: false
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-dendrite.service'] }}"
|
|
||||||
when: matrix_dendrite_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: run_setup | bool
|
when: run_setup | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-dimension.service'] }}"
|
|
||||||
when: matrix_dimension_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: run_setup | bool
|
when: run_setup | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Dynamic DNS image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_dynamic_dns_container_image_self_build and matrix_dynamic_dns_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-dynamic-dns.service'] }}"
|
|
||||||
when: "matrix_dynamic_dns_enabled | bool"
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_dynamic_dns_enabled | bool"
|
when: "run_setup | bool and matrix_dynamic_dns_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-email2matrix.service'] }}"
|
|
||||||
when: matrix_email2matrix_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_email2matrix_enabled | bool"
|
when: "run_setup | bool and matrix_email2matrix_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-etherpad.service'] }}"
|
|
||||||
when: matrix_etherpad_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension'
|
- when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension'
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-grafana.service'] }}"
|
|
||||||
when: matrix_grafana_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_grafana_enabled | bool"
|
when: "run_setup | bool and matrix_grafana_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-jitsi-web.service', 'matrix-jitsi-prosody.service', 'matrix-jitsi-jicofo.service', 'matrix-jitsi-jvb.service'] }}"
|
|
||||||
when: matrix_jitsi_enabled | bool
|
|
||||||
|
|
||||||
- name: Fail if on an unsupported architecture
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "Jitsi only supports the amd64 architecture right now. See https://github.com/jitsi/docker-jitsi-meet/issues/1069 and https://github.com/jitsi/docker-jitsi-meet/issues/1214"
|
|
||||||
when: matrix_jitsi_enabled | bool and matrix_architecture not in ['amd64', 'arm64']
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init_additional_jvb.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init_additional_jvb.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-additional-jitsi-jvb
|
- setup-additional-jitsi-jvb
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Fail if on an unsupported architecture
|
||||||
|
ansible.builtin.fail:
|
||||||
|
msg: "Jitsi only supports the amd64 architecture right now. See https://github.com/jitsi/docker-jitsi-meet/issues/1069 and https://github.com/jitsi/docker-jitsi-meet/issues/1214"
|
||||||
|
when: matrix_jitsi_enabled | bool and matrix_architecture not in ['amd64', 'arm64']
|
||||||
|
|
||||||
- name: Fail if required Jitsi settings not defined
|
- name: Fail if required Jitsi settings not defined
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: >-
|
msg: >-
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
---
|
---
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the matrix_ldap_registration_proxy image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_ldap_registration_proxy_container_image_self_build and matrix_ldap_registration_proxy_enabled | bool"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-ldap-registration-proxy.service'] }}"
|
|
||||||
when: matrix_ldap_registration_proxy_enabled | bool
|
|
||||||
|
|
||||||
- when: matrix_ldap_registration_proxy_enabled | bool
|
- when: matrix_ldap_registration_proxy_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the ma1sd image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_ma1sd_container_image_self_build and matrix_ma1sd_enabled | bool"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-ma1sd.service'] }}"
|
|
||||||
when: matrix_ma1sd_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_ma1sd_enabled | bool"
|
when: "run_setup | bool and matrix_ma1sd_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
|
|
||||||
# and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
|
|
||||||
- name: Fail if trying to self-build on Ansible < 2.8
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: "To self-build the Matrix Mailer image, you should use Ansible 2.8 or higher. See docs/ansible.md"
|
|
||||||
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mailer_container_image_self_build and matrix_mailer_enabled"
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mailer.service'] }}"
|
|
||||||
when: matrix_mailer_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_mailer.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_mailer.yml"
|
||||||
when: run_setup | bool
|
when: run_setup | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-nginx-proxy.service'] }}"
|
|
||||||
when: matrix_nginx_proxy_enabled | bool
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + [item.name] }}"
|
|
||||||
when: "item.applicable | bool and item.enableable | bool"
|
|
||||||
with_items: "{{ matrix_ssl_renewal_systemd_units_list }}"
|
|
@ -1,7 +1,4 @@
|
|||||||
---
|
---
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
# Always validating the configuration, even if `matrix_nginx_proxy: false`.
|
# Always validating the configuration, even if `matrix_nginx_proxy: false`.
|
||||||
# This role performs actions even if the role is disabled, so we need
|
# This role performs actions even if the role is disabled, so we need
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-ntfy.service'] }}"
|
|
||||||
when: matrix_ntfy_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_ntfy_enabled | bool"
|
when: "run_setup | bool and matrix_ntfy_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-postgres-backup.service'] }}"
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: "run_setup | bool and matrix_postgres_backup_enabled | bool"
|
when: "run_setup | bool and matrix_postgres_backup_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user