parent
5c3df22c35
commit
7c2a7a8eb6
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
|
- block:
|
||||||
when: run_stop | bool
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-aux-files
|
- setup-aux-files
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
tags:
|
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
||||||
- setup-all
|
|
||||||
- setup-backup-borg
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
when: "run_setup | bool and matrix_backup_borg_enabled | bool"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-backup-borg
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
when: "run_setup | bool and not matrix_backup_borg_enabled | bool"
|
when: "run_setup | bool and not matrix_backup_borg_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-backup-borg
|
- setup-backup-borg
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
tags:
|
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
||||||
- setup-all
|
|
||||||
- setup-bot-buscarron
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-buscarron
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
when: "run_setup | bool and not matrix_bot_buscarron_enabled | bool"
|
when: "run_setup | bool and not matrix_bot_buscarron_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-buscarron
|
- setup-bot-buscarron
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
tags:
|
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
||||||
- setup-all
|
|
||||||
- setup-bot-go-neb
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-go-neb
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
when: "run_setup | bool and not matrix_bot_go_neb_enabled | bool"
|
when: "run_setup | bool and not matrix_bot_go_neb_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-go-neb
|
- setup-bot-go-neb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
tags:
|
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
||||||
- setup-all
|
|
||||||
- setup-bot-honoroit
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-honoroit
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
when: "run_setup | bool and not matrix_bot_honoroit_enabled | bool"
|
when: "run_setup | bool and not matrix_bot_honoroit_enabled | bool"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-honoroit
|
- setup-bot-honoroit
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
|
- when: matrix_bot_matrix_registration_bot_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-bot-matrix-registration-bot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_bot_matrix_registration_bot_enabled | bool
|
||||||
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-matrix-registration-bot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_bot_matrix_registration_bot_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_bot_matrix_registration_bot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-matrix-registration-bot
|
- setup-bot-matrix-registration-bot
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
|
- when: matrix_bot_matrix_reminder_bot_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-bot-matrix-reminder-bot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_bot_matrix_reminder_bot_enabled | bool
|
||||||
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-matrix-reminder-bot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_bot_matrix_reminder_bot_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_bot_matrix_reminder_bot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-matrix-reminder-bot
|
- setup-bot-matrix-reminder-bot
|
||||||
|
@ -1,25 +1,22 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_bot_maubot_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_bot_maubot_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
||||||
when: "run_setup|bool and matrix_bot_maubot_enabled|bool"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-maubot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- block:
|
||||||
when: "run_setup|bool and matrix_bot_maubot_enabled|bool"
|
- when: matrix_bot_maubot_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-bot-maubot
|
- when: matrix_bot_maubot_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_bot_maubot_enabled | bool
|
||||||
when: "run_setup|bool and not matrix_bot_maubot_enabled|bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-maubot
|
- setup-bot-maubot
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
|
- when: matrix_bot_mjolnir_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-bot-mjolnir
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_bot_mjolnir_enabled | bool
|
||||||
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-mjolnir
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_bot_mjolnir_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_bot_mjolnir_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-mjolnir
|
- setup-bot-mjolnir
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_bot_postmoogle_enabled | bool"
|
- when: matrix_bot_postmoogle_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-bot-postmoogle
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_bot_postmoogle_enabled | bool
|
||||||
when: "run_setup | bool and matrix_bot_postmoogle_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-bot-postmoogle
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_bot_postmoogle_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_bot_postmoogle_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-bot-postmoogle
|
- setup-bot-postmoogle
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
|
- when: matrix_appservice_discord_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-appservice-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_appservice_discord_enabled | bool
|
||||||
when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-appservice-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_appservice_discord_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_appservice_discord_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-appservice-discord
|
- setup-appservice-discord
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
|
- when: matrix_appservice_irc_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-appservice-irc
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_appservice_irc_enabled | bool
|
||||||
when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-appservice-irc
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_appservice_irc_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_appservice_irc_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-appservice-irc
|
- setup-appservice-irc
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_appservice_kakaotalk_enabled | bool"
|
- when: matrix_appservice_kakaotalk_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-appservice-kakaotalk
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_appservice_kakaotalk_enabled | bool
|
||||||
when: "run_setup | bool and matrix_appservice_kakaotalk_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-appservice-kakaotalk
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_appservice_kakaotalk_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_appservice_kakaotalk_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-appservice-kakaotalk
|
- setup-appservice-kakaotalk
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_appservice_slack_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_appservice_slack_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_appservice_slack_enabled | bool"
|
- when: matrix_appservice_slack_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-appservice-slack
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_appservice_slack_enabled | bool
|
||||||
when: "run_setup | bool and matrix_appservice_slack_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-appservice-slack
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_appservice_slack_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_appservice_slack_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-appservice-slack
|
- setup-appservice-slack
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_appservice_webhooks_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_appservice_webhooks_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool"
|
- when: matrix_appservice_webhooks_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-appservice-webhooks
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_appservice_webhooks_enabled | bool
|
||||||
when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-appservice-webhooks
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_appservice_webhooks_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_appservice_webhooks_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-appservice-webhooks
|
- setup-appservice-webhooks
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_beeper_linkedin_enabled | bool"
|
- when: matrix_beeper_linkedin_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-beeper-linkedin
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_beeper_linkedin_enabled | bool
|
||||||
when: "run_setup and matrix_beeper_linkedin_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-beeper-linkedin
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_beeper_linkedin_enabled | bool
|
||||||
when: "run_setup and not matrix_beeper_linkedin_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-beeper-linkedin
|
- setup-beeper-linkedin
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
|
- when: matrix_go_skype_bridge_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-go-skype-bridge
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_go_skype_bridge_enabled | bool
|
||||||
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-go-skype-bridge
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_go_skype_bridge_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_go_skype_bridge_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-go-skype-bridge
|
- setup-go-skype-bridge
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_heisenbridge_enabled | bool"
|
- when: matrix_heisenbridge_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
- setup-all
|
|
||||||
- setup-heisenbridge
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_heisenbridge_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_heisenbridge_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-heisenbridge
|
- setup-heisenbridge
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_hookshot_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_hookshot_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_hookshot_enabled | bool"
|
- when: matrix_hookshot_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-hookshot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_hookshot_enabled | bool
|
||||||
when: "run_setup | bool and matrix_hookshot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-hookshot
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_hookshot_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_hookshot_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-hookshot
|
- setup-hookshot
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_discord_enabled | bool"
|
- when: matrix_mautrix_discord_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_discord_enabled | bool
|
||||||
when: "run_setup and matrix_mautrix_discord_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_discord_enabled | bool
|
||||||
when: "run_setup and not matrix_mautrix_discord_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-discord
|
- setup-mautrix-discord
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mautrix_facebook_enabled | bool and matrix_mautrix_facebook_appservice_public_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mautrix_facebook_enabled | bool and matrix_mautrix_facebook_appservice_public_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool"
|
- when: matrix_mautrix_facebook_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-facebook
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_facebook_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-facebook
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_facebook_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_facebook_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-facebook
|
- setup-mautrix-facebook
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mautrix_googlechat_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mautrix_googlechat_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool"
|
- when: matrix_mautrix_googlechat_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-googlechat
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_googlechat_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-googlechat
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_googlechat_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_googlechat_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-googlechat
|
- setup-mautrix-googlechat
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mautrix_hangouts_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mautrix_hangouts_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool"
|
- when: matrix_mautrix_hangouts_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-hangouts
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_hangouts_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-hangouts
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_hangouts_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_hangouts_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-hangouts
|
- setup-mautrix-hangouts
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
|
- when: matrix_mautrix_instagram_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-instagram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_instagram_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-instagram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_instagram_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_instagram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-instagram
|
- setup-mautrix-instagram
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
|
- when: matrix_mautrix_signal_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-signal
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_signal_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-signal
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_signal_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_signal_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-signal
|
- setup-mautrix-signal
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mautrix_telegram_enabled | bool and matrix_mautrix_telegram_appservice_public_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mautrix_telegram_enabled | bool and matrix_mautrix_telegram_appservice_public_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool"
|
- when: matrix_mautrix_telegram_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-telegram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_telegram_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-telegram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_telegram_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_telegram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-telegram
|
- setup-mautrix-telegram
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
|
- when: matrix_mautrix_twitter_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-twitter
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_twitter_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-twitter
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_twitter_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mautrix_twitter_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-twitter
|
- setup-mautrix-twitter
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_whatsapp_enabled | bool"
|
- when: matrix_mautrix_whatsapp_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-whatsapp
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_whatsapp_enabled | bool
|
||||||
when: "run_setup and matrix_mautrix_whatsapp_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-whatsapp
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mautrix_whatsapp_enabled | bool
|
||||||
when: "run_setup and not matrix_mautrix_whatsapp_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-whatsapp
|
- setup-mautrix-whatsapp
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
|
- when: matrix_mx_puppet_discord_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_discord_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-discord
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_discord_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_discord_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-discord
|
- setup-mx-puppet-discord
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
|
- when: matrix_mx_puppet_groupme_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-groupme
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_groupme_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-groupme
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_groupme_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_groupme_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-groupme
|
- setup-mx-puppet-groupme
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
|
- when: matrix_mx_puppet_instagram_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-instagram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_instagram_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-instagram
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_instagram_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_instagram_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-instagram
|
- setup-mx-puppet-instagram
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mx_puppet_slack_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mx_puppet_slack_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool"
|
- when: matrix_mx_puppet_slack_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-slack
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_slack_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-slack
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_slack_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_slack_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-slack
|
- setup-mx-puppet-slack
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
|
- when: matrix_mx_puppet_steam_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-steam
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_steam_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-steam
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_steam_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_steam_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-steam
|
- setup-mx-puppet-steam
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_mx_puppet_twitter_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_mx_puppet_twitter_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool"
|
- when: matrix_mx_puppet_twitter_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-twitter
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mx_puppet_twitter_enabled | bool
|
||||||
when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-mx-puppet-twitter
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_mx_puppet_twitter_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_mx_puppet_twitter_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mx-puppet-twitter
|
- setup-mx-puppet-twitter
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
|
- when: matrix_sms_bridge_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-matrix-sms-bridge
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_sms_bridge_enabled | bool
|
||||||
when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-matrix-sms-bridge
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_sms_bridge_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_sms_bridge_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-matrix-sms-bridge
|
- setup-matrix-sms-bridge
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_cactus_comments_enabled | bool and matrix_cactus_comments_serve_client_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_cactus_comments_enabled | bool and matrix_cactus_comments_serve_client_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_cactus_comments_enabled | bool"
|
- when: matrix_cactus_comments_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-cactus-comments
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_cactus_comments_enabled | bool
|
||||||
when: "run_setup | bool and matrix_cactus_comments_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-cactus-comments
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_cactus_comments_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_cactus_comments_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-cactus-comments
|
- setup-cactus-comments
|
||||||
|
@ -1,38 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_client_element_enabled | bool"
|
- when: matrix_client_element_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-client-element
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/prepare_themes.yml"
|
- when: matrix_client_element_enabled | bool
|
||||||
when: run_setup | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prepare_themes.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-client-element
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/migrate_riot_web.yml"
|
- when: matrix_client_element_enabled | bool
|
||||||
when: run_setup | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-client-element
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
|
||||||
when: "run_setup | bool and matrix_client_element_enabled | bool"
|
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-client-element
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_client_element_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_client_element_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-client-element
|
- setup-client-element
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_client_element_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
when: "run_self_check | bool and matrix_client_element_enabled | bool"
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Check existence of matrix-riot-web.service
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-riot-web.service"
|
|
||||||
register: matrix_client_riot_web_service_stat
|
|
||||||
when: "matrix_client_element_enabled | bool"
|
|
||||||
|
|
||||||
- name: Ensure matrix-riot-web is stopped
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: matrix-riot-web
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
||||||
daemon_reload: true
|
|
||||||
register: stopping_result
|
|
||||||
when: "matrix_client_element_enabled | bool and matrix_client_riot_web_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-riot-web.service doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-riot-web.service"
|
|
||||||
state: absent
|
|
||||||
when: "matrix_client_element_enabled | bool and matrix_client_riot_web_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-riot-web.service removal
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_client_element_enabled | bool and matrix_client_riot_web_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Check existence of /matrix/riot-web
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "/matrix/riot-web"
|
|
||||||
register: matrix_client_riot_web_dir_stat
|
|
||||||
when: "matrix_client_element_enabled | bool"
|
|
||||||
|
|
||||||
- name: Relocate /matrix/riot-web to /matrix/client-element
|
|
||||||
ansible.builtin.command: "mv /matrix/riot-web /matrix/client-element"
|
|
||||||
when: "matrix_client_element_enabled | bool and matrix_client_riot_web_dir_stat.stat.exists"
|
|
@ -1,26 +1,20 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
|
- when: matrix_client_hydrogen_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-client-hydrogen
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_client_hydrogen_enabled | bool
|
||||||
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-client-hydrogen
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_client_hydrogen_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_client_hydrogen_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-client-hydrogen
|
- setup-client-hydrogen
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_client_hydrogen_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
when: "run_self_check | bool and matrix_client_hydrogen_enabled | bool"
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
|
- block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
|
||||||
tags:
|
tags:
|
||||||
- run-docker-prune
|
- run-docker-prune
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/conduit/setup_install.yml"
|
|
||||||
when: "matrix_conduit_enabled | bool"
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/conduit/setup_uninstall.yml"
|
|
||||||
when: "not matrix_conduit_enabled | bool"
|
|
@ -1,7 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/conduit/setup.yml"
|
- block:
|
||||||
when: run_setup | bool
|
- when: matrix_conduit_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
|
- when: not matrix_conduit_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-conduit
|
- setup-conduit
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_corporal_enabled | bool"
|
- when: matrix_corporal_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-corporal
|
- when: matrix_corporal_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_corporal.yml"
|
- when: not matrix_corporal_enabled | bool
|
||||||
when: run_setup | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-corporal
|
- setup-corporal
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_corporal.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_corporal_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
when: "run_self_check | bool and matrix_corporal_enabled | bool"
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-corporal service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
||||||
|
register: matrix_corporal_service_stat
|
||||||
|
|
||||||
|
- when: matrix_corporal_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-corporal is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-corporal
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-corporal.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-corporal.service removal
|
||||||
|
ansible.builtin.service:
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Ensure matrix-corporal files don't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
||||||
|
- "{{ matrix_corporal_config_dir_path }}/config.json"
|
||||||
|
|
||||||
|
- name: Ensure Matrix Corporal Docker image doesn't exist
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_corporal_docker_image }}"
|
||||||
|
state: absent
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_coturn_enabled | bool"
|
- when: matrix_coturn_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-coturn
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_coturn_enabled | bool
|
||||||
when: "run_setup | bool and matrix_coturn_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-coturn
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_coturn_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_coturn_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-coturn
|
- setup-coturn
|
||||||
|
@ -1,32 +1,26 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: run_setup | bool
|
- when: matrix_dendrite_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-dendrite
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_dendrite.yml"
|
- when: matrix_dendrite_enabled | bool
|
||||||
when: run_setup | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_dendrite.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-dendrite
|
- setup-dendrite
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/register_user.yml"
|
- block:
|
||||||
when: run_dendrite_register_user | bool and matrix_dendrite_enabled | bool
|
- when: matrix_dendrite_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
|
||||||
- register-user
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
|
- when: matrix_dendrite_enabled | bool
|
||||||
delegate_to: 127.0.0.1
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
|
||||||
become: false
|
|
||||||
when: run_self_check | bool and matrix_dendrite_enabled | bool
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_dendrite_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
|
||||||
when: run_self_check | bool and matrix_dendrite_enabled | bool
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- register-user
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: run_setup | bool
|
- when: matrix_dimension_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-dimension
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_dimension_enabled | bool
|
||||||
when: run_setup | bool and matrix_dimension_enabled | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-dimension
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_dimension_enabled | bool
|
||||||
when: run_setup | bool and not matrix_dimension_enabled | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-dimension
|
- setup-dimension
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_dynamic_dns_enabled | bool"
|
- when: matrix_appservice_slack_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-dynamic-dns
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/install.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_dynamic_dns_enabled | bool"
|
- when: matrix_dynamic_dns_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-dynamic-dns
|
- when: matrix_dynamic_dns_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/uninstall.yml"
|
- when: not matrix_dynamic_dns_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_dynamic_dns_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-dynamic-dns
|
- setup-dynamic-dns
|
||||||
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_email2matrix_enabled | bool"
|
- when: matrix_email2matrix_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-email2matrix
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_email2matrix_enabled | bool
|
||||||
when: "run_setup | bool and matrix_email2matrix_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-email2matrix
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_email2matrix_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_email2matrix_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-email2matrix
|
- setup-email2matrix
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension'
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension'
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: run_setup | bool and matrix_etherpad_enabled | bool
|
- when: matrix_etherpad_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-etherpad
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_etherpad_enabled | bool
|
||||||
when: run_setup | bool and matrix_etherpad_enabled | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-etherpad
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_etherpad_enabled | bool
|
||||||
when: run_setup | bool and not matrix_etherpad_enabled | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-etherpad
|
- setup-etherpad
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_grafana_enabled | bool"
|
- when: matrix_grafana_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-grafana
|
- when: matrix_grafana_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
|
- when: not matrix_grafana_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-grafana
|
- setup-grafana
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-grafana service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||||
|
register: matrix_grafana_service_stat
|
||||||
|
|
||||||
|
- when: matrix_grafana_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-grafana is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-grafana
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-grafana.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||||
|
state: absent
|
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-jitsi-jicofo service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-jicofo.service"
|
||||||
|
register: matrix_jitsi_jicofo_service_stat
|
||||||
|
|
||||||
|
- when: matrix_jitsi_jicofo_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-jitsi-jicofo is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-jitsi-jicofo
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-jitsi-jicofo.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-jicofo.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure Matrix jitsi-jicofo paths doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ matrix_jitsi_jicofo_base_path }}"
|
||||||
|
state: absent
|
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-jitsi-jvb service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-jvb.service"
|
||||||
|
register: matrix_jitsi_jvb_service_stat
|
||||||
|
|
||||||
|
- when: matrix_jitsi_jvb_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-jitsi-jvb is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-jitsi-jvb
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-jitsi-jvb.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-jvb.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure Matrix jitsi-jvb paths doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ matrix_jitsi_jvb_base_path }}"
|
||||||
|
state: absent
|
@ -1,99 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to setting up jitsi-prosody
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Ensure Matrix jitsi-prosody environment exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ item.path }}"
|
|
||||||
state: directory
|
|
||||||
mode: 0777
|
|
||||||
owner: "{{ matrix_user_username }}"
|
|
||||||
group: "{{ matrix_user_groupname }}"
|
|
||||||
with_items:
|
|
||||||
- {path: "{{ matrix_jitsi_prosody_base_path }}", when: true}
|
|
||||||
- {path: "{{ matrix_jitsi_prosody_config_path }}", when: true}
|
|
||||||
- {path: "{{ matrix_jitsi_prosody_plugins_path }}", when: true}
|
|
||||||
when: matrix_jitsi_enabled | bool and item.when
|
|
||||||
|
|
||||||
- name: Ensure jitsi-prosody Docker image is pulled
|
|
||||||
community.docker.docker_image:
|
|
||||||
name: "{{ matrix_jitsi_prosody_docker_image }}"
|
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
||||||
force_source: "{{ matrix_jitsi_prosody_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
||||||
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_jitsi_prosody_docker_image_force_pull }}"
|
|
||||||
when: matrix_jitsi_enabled | bool
|
|
||||||
register: result
|
|
||||||
retries: "{{ devture_playbook_help_container_retries_count }}"
|
|
||||||
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
|
||||||
until: result is not failed
|
|
||||||
|
|
||||||
- name: Ensure jitsi-prosody environment variables file is created
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/prosody/env.j2"
|
|
||||||
dest: "{{ matrix_jitsi_prosody_base_path }}/env"
|
|
||||||
owner: "{{ matrix_user_username }}"
|
|
||||||
group: "{{ matrix_user_groupname }}"
|
|
||||||
mode: 0640
|
|
||||||
when: matrix_jitsi_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure matrix-jitsi-prosody.service file is installed
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/prosody/matrix-jitsi-prosody.service.j2"
|
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
|
||||||
mode: 0644
|
|
||||||
register: matrix_jitsi_prosody_systemd_service_result
|
|
||||||
when: matrix_jitsi_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure systemd service is reloaded after matrix-jitsi-prosody.service installation
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_jitsi_enabled and matrix_jitsi_prosody_systemd_service_result.changed"
|
|
||||||
|
|
||||||
- name: Ensure authentication is properly configured
|
|
||||||
ansible.builtin.include_tasks:
|
|
||||||
file: "{{ role_path }}/tasks/util/setup_jitsi_auth.yml"
|
|
||||||
when:
|
|
||||||
- matrix_jitsi_enabled | bool
|
|
||||||
- matrix_jitsi_enable_auth | bool
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to getting rid of jitsi-prosody (if it was previously enabled)
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Ensure matrix-jitsi-prosody.service file exists
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
|
||||||
register: matrix_jitsi_prosody_service_stat
|
|
||||||
when: "not matrix_jitsi_enabled | bool"
|
|
||||||
|
|
||||||
- name: Ensure matrix-jitsi-prosody is stopped
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: matrix-jitsi-prosody
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
||||||
daemon_reload: true
|
|
||||||
register: stopping_result
|
|
||||||
when: "not matrix_jitsi_enabled | bool and matrix_jitsi_prosody_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-jitsi-prosody.service file doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
|
||||||
state: absent
|
|
||||||
when: "not matrix_jitsi_enabled | bool and matrix_jitsi_prosody_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd is reloaded after matrix-jitsi-prosody.service removal
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "not matrix_jitsi_enabled | bool and matrix_jitsi_prosody_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure Matrix jitsi-prosody paths doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ matrix_jitsi_prosody_base_path }}"
|
|
||||||
state: absent
|
|
||||||
when: "not matrix_jitsi_enabled | bool"
|
|
||||||
|
|
||||||
# Intentionally not removing the Docker image when uninstalling.
|
|
||||||
# We can't be sure it had been pulled by us in the first place.
|
|
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure Matrix jitsi-prosody environment exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0777
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
with_items:
|
||||||
|
- {path: "{{ matrix_jitsi_prosody_base_path }}", when: true}
|
||||||
|
- {path: "{{ matrix_jitsi_prosody_config_path }}", when: true}
|
||||||
|
- {path: "{{ matrix_jitsi_prosody_plugins_path }}", when: true}
|
||||||
|
when: item.when | bool
|
||||||
|
|
||||||
|
- name: Ensure jitsi-prosody Docker image is pulled
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_jitsi_prosody_docker_image }}"
|
||||||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
force_source: "{{ matrix_jitsi_prosody_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_jitsi_prosody_docker_image_force_pull }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ devture_playbook_help_container_retries_count }}"
|
||||||
|
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
|
- name: Ensure jitsi-prosody environment variables file is created
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/prosody/env.j2"
|
||||||
|
dest: "{{ matrix_jitsi_prosody_base_path }}/env"
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
mode: 0640
|
||||||
|
|
||||||
|
- name: Ensure matrix-jitsi-prosody.service file is installed
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/prosody/matrix-jitsi-prosody.service.j2"
|
||||||
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
||||||
|
mode: 0644
|
||||||
|
register: matrix_jitsi_prosody_systemd_service_result
|
||||||
|
|
||||||
|
- name: Ensure authentication is properly configured
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: "{{ role_path }}/tasks/util/setup_jitsi_auth.yml"
|
||||||
|
when: matrix_jitsi_enable_auth | bool
|
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check if matrix-jitsi-prosody.service file exists
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
||||||
|
register: matrix_jitsi_prosody_service_stat
|
||||||
|
|
||||||
|
- when: matrix_jitsi_prosody_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-jitsi-prosody is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-jitsi-prosody
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-jitsi-prosody.service file doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-prosody.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure Matrix jitsi-prosody paths doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ matrix_jitsi_prosody_base_path }}"
|
||||||
|
state: absent
|
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-jitsi-web service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-web.service"
|
||||||
|
register: matrix_jitsi_web_service_stat
|
||||||
|
|
||||||
|
- when: matrix_jitsi_web_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-jitsi-web is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-jitsi-web
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-jitsi-web.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-web.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure Matrix jitsi-web paths doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ matrix_jitsi_web_base_path }}"
|
||||||
|
state: absent
|
@ -1,25 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_ldap_registration_proxy_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_ldap_registration_proxy_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_ldap_registration_proxy_enabled | bool"
|
- when: matrix_ldap_registration_proxy_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-matrix-ldap-registration-proxy
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_ldap_registration_proxy_enabled | bool
|
||||||
when: "run_setup | bool and matrix_ldap_registration_proxy_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-matrix-ldap-registration-proxy
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_ldap_registration_proxy_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_ldap_registration_proxy_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-matrix-ldap-registration-proxy
|
- setup-matrix-ldap-registration-proxy
|
||||||
|
@ -1,26 +1,19 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_ma1sd_enabled | bool"
|
- when: matrix_ma1sd_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-ma1sd
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_ma1sd_enabled | bool
|
||||||
when: "run_setup | bool and matrix_ma1sd_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-ma1sd
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_ma1sd_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_ma1sd_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
|
||||||
- setup-ma1sd
|
- setup-ma1sd
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_ma1sd.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_ma1sd_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
when: "run_self_check | bool and matrix_ma1sd_enabled | bool"
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_mailer.yml"
|
- block:
|
||||||
when: run_setup | bool
|
- when: matrix_mailer_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
|
- when: not matrix_mailer_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mailer
|
- setup-mailer
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-mailer service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mailer.service"
|
||||||
|
register: matrix_mailer_service_stat
|
||||||
|
|
||||||
|
- when: matrix_mailer_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-mailer is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-mailer
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-mailer.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mailer.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-mailer.service removal
|
||||||
|
ansible.builtin.service:
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Ensure Matrix mailer path doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ matrix_mailer_base_path }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure mailer Docker image doesn't exist
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_mailer_docker_image }}"
|
||||||
|
state: absent
|
@ -1,20 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_ntfy_enabled | bool"
|
- when: matrix_ntfy_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
- setup-all
|
|
||||||
- setup-ntfy
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_ntfy_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_ntfy_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-ntfy
|
- setup-ntfy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
|
- block:
|
||||||
delegate_to: 127.0.0.1
|
- when: matrix_ntfy_enabled | bool
|
||||||
become: false
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
|
||||||
when: "run_self_check | bool and matrix_ntfy_enabled | bool"
|
|
||||||
tags:
|
tags:
|
||||||
- self-check
|
- self-check
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_postgres_backup_enabled | bool"
|
- when: matrix_postgres_backup_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-postgres-backup
|
- when: matrix_postgres_backup_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_postgres_backup.yml"
|
- when: not matrix_postgres_backup_enabled | bool
|
||||||
when: run_setup | bool
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-postgres-backup
|
- setup-postgres-backup
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
- ansible.builtin.import_role:
|
||||||
|
name: custom/matrix-postgres
|
||||||
|
tasks_from: detect_existing_postgres_version
|
||||||
|
when: 'matrix_postgres_backup_postgres_data_path != ""'
|
||||||
|
|
||||||
|
# If we have found an existing version (installed from before), we use its corresponding Docker image.
|
||||||
|
# If not, we install using the latest Postgres.
|
||||||
|
#
|
||||||
|
# Upgrading is supposed to be performed separately and explicitly (see `upgrade_postgres.yml`).
|
||||||
|
- ansible.builtin.set_fact:
|
||||||
|
matrix_postgres_backup_docker_image_to_use: "{{ matrix_postgres_backup_docker_image_latest if matrix_postgres_backup_detected_version_corresponding_docker_image | default('') == '' else matrix_postgres_backup_detected_version_corresponding_docker_image }}"
|
||||||
|
|
||||||
|
- name: Ensure postgres backup Docker image is pulled
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_postgres_backup_docker_image_to_use }}"
|
||||||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
force_source: "{{ matrix_postgres_backup_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_postgres_backup_docker_image_force_pull }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ devture_playbook_help_container_retries_count }}"
|
||||||
|
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
|
- name: Ensure Postgres backup paths exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0700
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
with_items:
|
||||||
|
- "{{ matrix_postgres_backup_path }}"
|
||||||
|
|
||||||
|
- name: Ensure Postgres environment variables file created
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/{{ item }}.j2"
|
||||||
|
dest: "{{ matrix_postgres_backup_path }}/{{ item }}"
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
mode: 0640
|
||||||
|
with_items:
|
||||||
|
- "env-postgres-backup"
|
||||||
|
|
||||||
|
- name: Ensure matrix-postgres-backup.service installed
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/systemd/matrix-postgres-backup.service.j2"
|
||||||
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
||||||
|
mode: 0644
|
||||||
|
register: matrix_postgres_backup_systemd_service_result
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-postgres-backup.service installation
|
||||||
|
ansible.builtin.service:
|
||||||
|
daemon_reload: true
|
||||||
|
when: matrix_postgres_backup_systemd_service_result.changed | bool
|
@ -1,112 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to setting up postgres backup
|
|
||||||
#
|
|
||||||
- ansible.builtin.import_role:
|
|
||||||
name: custom/matrix-postgres
|
|
||||||
tasks_from: detect_existing_postgres_version
|
|
||||||
when: 'matrix_postgres_backup_enabled | bool and matrix_postgres_backup_postgres_data_path != ""'
|
|
||||||
|
|
||||||
# If we have found an existing version (installed from before), we use its corresponding Docker image.
|
|
||||||
# If not, we install using the latest Postgres.
|
|
||||||
#
|
|
||||||
# Upgrading is supposed to be performed separately and explicitly (see `upgrade_postgres.yml`).
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_postgres_backup_docker_image_to_use: "{{ matrix_postgres_backup_docker_image_latest if matrix_postgres_backup_detected_version_corresponding_docker_image | default('') == '' else matrix_postgres_backup_detected_version_corresponding_docker_image }}"
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure postgres backup Docker image is pulled
|
|
||||||
community.docker.docker_image:
|
|
||||||
name: "{{ matrix_postgres_backup_docker_image_to_use }}"
|
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
||||||
force_source: "{{ matrix_postgres_backup_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
||||||
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_postgres_backup_docker_image_force_pull }}"
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
||||||
register: result
|
|
||||||
retries: "{{ devture_playbook_help_container_retries_count }}"
|
|
||||||
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
|
||||||
until: result is not failed
|
|
||||||
|
|
||||||
- name: Ensure Postgres backup paths exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
mode: 0700
|
|
||||||
owner: "{{ matrix_user_username }}"
|
|
||||||
group: "{{ matrix_user_groupname }}"
|
|
||||||
with_items:
|
|
||||||
- "{{ matrix_postgres_backup_path }}"
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure Postgres environment variables file created
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/{{ item }}.j2"
|
|
||||||
dest: "{{ matrix_postgres_backup_path }}/{{ item }}"
|
|
||||||
owner: "{{ matrix_user_username }}"
|
|
||||||
group: "{{ matrix_user_groupname }}"
|
|
||||||
mode: 0640
|
|
||||||
with_items:
|
|
||||||
- "env-postgres-backup"
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure matrix-postgres-backup.service installed
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-postgres-backup.service.j2"
|
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
|
||||||
mode: 0644
|
|
||||||
register: matrix_postgres_backup_systemd_service_result
|
|
||||||
when: matrix_postgres_backup_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-postgres-backup.service installation
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_postgres_backup_enabled | bool and matrix_postgres_backup_systemd_service_result.changed"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to getting rid of postgres backup (if it was previously enabled)
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Check existence of matrix-postgres-backup service
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
|
||||||
register: matrix_postgres_backup_service_stat
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool"
|
|
||||||
|
|
||||||
- name: Ensure matrix-postgres-backup is stopped
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: matrix-postgres-backup
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
||||||
daemon_reload: true
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool and matrix_postgres_backup_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-postgres-backup.service doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
|
||||||
state: absent
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool and matrix_postgres_backup_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-postgres-backup.service removal
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool and matrix_postgres_backup_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Check existence of matrix-postgres-backup backup path
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ matrix_postgres_backup_path }}"
|
|
||||||
register: matrix_postgres_backup_path_stat
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool"
|
|
||||||
|
|
||||||
# We just want to notify the user. Deleting data is too destructive.
|
|
||||||
- name: Inject warning if matrix-postgres backup data remains
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
devture_playbook_runtime_messages_list: |
|
|
||||||
{{
|
|
||||||
devture_playbook_runtime_messages_list | default([])
|
|
||||||
+
|
|
||||||
[
|
|
||||||
"NOTE: You are not using the local backup service to backup the PostgreSQL database, but some old data remains from before in `{{ matrix_postgres_backup_path }}`. Feel free to delete it."
|
|
||||||
]
|
|
||||||
}}
|
|
||||||
when: "not matrix_postgres_backup_enabled | bool and matrix_postgres_backup_path_stat.stat.exists"
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-postgres-backup service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
||||||
|
register: matrix_postgres_backup_service_stat
|
||||||
|
|
||||||
|
|
||||||
|
- when: matrix_postgres_backup_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-postgres-backup is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-postgres-backup
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Ensure matrix-postgres-backup.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postgres-backup.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-postgres-backup.service removal
|
||||||
|
ansible.builtin.service:
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Check existence of matrix-postgres-backup backup path
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ matrix_postgres_backup_path }}"
|
||||||
|
register: matrix_postgres_backup_path_stat
|
||||||
|
|
||||||
|
# We just want to notify the user. Deleting data is too destructive.
|
||||||
|
- name: Inject warning if matrix-postgres backup data remains
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
devture_playbook_runtime_messages_list: |
|
||||||
|
{{
|
||||||
|
devture_playbook_runtime_messages_list | default([])
|
||||||
|
+
|
||||||
|
[
|
||||||
|
"NOTE: You are not using the local backup service to backup the PostgreSQL database, but some old data remains from before in `{{ matrix_postgres_backup_path }}`. Feel free to delete it."
|
||||||
|
]
|
||||||
|
}}
|
||||||
|
when: matrix_postgres_backup_path_stat.stat.exists | bool
|
@ -1,12 +1,18 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_metrics_proxying_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_metrics_proxying_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
|
- block:
|
||||||
|
- when: matrix_prometheus_node_exporter_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
|
- when: not matrix_prometheus_node_exporter_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-prometheus-node-exporter
|
- setup-prometheus-node-exporter
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to setting up matrix-prometheus-node-exporter
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-node-exporter image is pulled
|
|
||||||
community.docker.docker_image:
|
|
||||||
name: "{{ matrix_prometheus_node_exporter_docker_image }}"
|
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
||||||
force_source: "{{ matrix_prometheus_node_exporter_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
||||||
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_prometheus_node_exporter_docker_image_force_pull }}"
|
|
||||||
when: "matrix_prometheus_node_exporter_enabled | bool"
|
|
||||||
register: result
|
|
||||||
retries: "{{ devture_playbook_help_container_retries_count }}"
|
|
||||||
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
|
||||||
until: result is not failed
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-node-exporter.service installed
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-prometheus-node-exporter.service.j2"
|
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
|
||||||
mode: 0644
|
|
||||||
register: matrix_prometheus_node_exporter_systemd_service_result
|
|
||||||
when: matrix_prometheus_node_exporter_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-prometheus.service installation
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_systemd_service_result.changed"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to getting rid of matrix-prometheus-node-exporter (if it was previously enabled)
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Check existence of matrix-prometheus-node-exporter service
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
|
||||||
register: matrix_prometheus_node_exporter_service_stat
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-node-exporter is stopped
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: matrix-prometheus-node-exporter
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
||||||
daemon_reload: true
|
|
||||||
register: stopping_result
|
|
||||||
when: "not matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-node-exporter.service doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
|
||||||
state: absent
|
|
||||||
when: "not matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-prometheus-node-exporter.service removal
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "not matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_service_stat.stat.exists"
|
|
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-node-exporter image is pulled
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_prometheus_node_exporter_docker_image }}"
|
||||||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
force_source: "{{ matrix_prometheus_node_exporter_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_prometheus_node_exporter_docker_image_force_pull }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ devture_playbook_help_container_retries_count }}"
|
||||||
|
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-node-exporter.service installed
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/systemd/matrix-prometheus-node-exporter.service.j2"
|
||||||
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
||||||
|
mode: 0644
|
||||||
|
register: matrix_prometheus_node_exporter_systemd_service_result
|
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-prometheus-node-exporter service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
||||||
|
register: matrix_prometheus_node_exporter_service_stat
|
||||||
|
|
||||||
|
- when: matrix_prometheus_node_exporter_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-prometheus-node-exporter is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-prometheus-node-exporter
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-node-exporter.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-node-exporter.service"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-prometheus-node-exporter.service removal
|
||||||
|
ansible.builtin.service:
|
||||||
|
daemon_reload: true
|
@ -1,12 +1,18 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- when: matrix_prometheus_node_exporter_enabled | bool and matrix_prometheus_node_exporter_metrics_proxying_enabled | bool
|
- block:
|
||||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
- when: matrix_prometheus_postgres_exporter_enabled | bool and matrix_prometheus_postgres_exporter_metrics_proxying_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-nginx-proxy
|
- setup-nginx-proxy
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
|
- block:
|
||||||
|
- when: matrix_prometheus_postgres_exporter_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
|
|
||||||
|
- when: not matrix_prometheus_postgres_exporter_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-prometheus-postgres-exporter
|
- setup-prometheus-postgres-exporter
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to setting up matrix-prometheus-postgres-exporter
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-postgres-exporter image is pulled
|
|
||||||
community.docker.docker_image:
|
|
||||||
name: "{{ matrix_prometheus_postgres_exporter_docker_image }}"
|
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
||||||
force_source: "{{ matrix_prometheus_postgres_exporter_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
||||||
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_prometheus_postgres_exporter_docker_image_force_pull }}"
|
|
||||||
when: "matrix_prometheus_postgres_exporter_enabled | bool"
|
|
||||||
register: result
|
|
||||||
retries: "{{ devture_playbook_help_container_retries_count }}"
|
|
||||||
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
|
||||||
until: result is not failed
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-postgres-exporter.service installed
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-prometheus-postgres-exporter.service.j2"
|
|
||||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
|
||||||
mode: 0644
|
|
||||||
register: matrix_prometheus_postgres_exporter_systemd_service_result
|
|
||||||
when: matrix_prometheus_postgres_exporter_enabled | bool
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-prometheus.service installation
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "matrix_prometheus_postgres_exporter_enabled | bool and matrix_prometheus_postgres_exporter_systemd_service_result.changed"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tasks related to getting rid of matrix-prometheus-postgres-exporter (if it was previously enabled)
|
|
||||||
#
|
|
||||||
|
|
||||||
- name: Check existence of matrix-prometheus-postgres-exporter service
|
|
||||||
ansible.builtin.stat:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
|
||||||
register: matrix_prometheus_postgres_exporter_service_stat
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-postgres-exporter is stopped
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: matrix-prometheus-postgres-exporter
|
|
||||||
state: stopped
|
|
||||||
enabled: false
|
|
||||||
daemon_reload: true
|
|
||||||
register: stopping_result
|
|
||||||
when: "not matrix_prometheus_postgres_exporter_enabled | bool and matrix_prometheus_postgres_exporter_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-prometheus-postgres-exporter.service doesn't exist
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
|
||||||
state: absent
|
|
||||||
when: "not matrix_prometheus_postgres_exporter_enabled | bool and matrix_prometheus_postgres_exporter_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-prometheus-postgres-exporter.service removal
|
|
||||||
ansible.builtin.service:
|
|
||||||
daemon_reload: true
|
|
||||||
when: "not matrix_prometheus_postgres_exporter_enabled | bool and matrix_prometheus_postgres_exporter_service_stat.stat.exists"
|
|
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-postgres-exporter image is pulled
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: "{{ matrix_prometheus_postgres_exporter_docker_image }}"
|
||||||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
force_source: "{{ matrix_prometheus_postgres_exporter_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_prometheus_postgres_exporter_docker_image_force_pull }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ devture_playbook_help_container_retries_count }}"
|
||||||
|
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-postgres-exporter.service installed
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ role_path }}/templates/systemd/matrix-prometheus-postgres-exporter.service.j2"
|
||||||
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
||||||
|
mode: 0644
|
||||||
|
register: matrix_prometheus_postgres_exporter_systemd_service_result
|
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-prometheus-postgres-exporter service
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
||||||
|
register: matrix_prometheus_postgres_exporter_service_stat
|
||||||
|
|
||||||
|
- when: matrix_prometheus_postgres_exporter_service_stat.stat.exists | bool
|
||||||
|
block:
|
||||||
|
- name: Ensure matrix-prometheus-postgres-exporter is stopped
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: matrix-prometheus-postgres-exporter
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
daemon_reload: true
|
||||||
|
register: stopping_result
|
||||||
|
|
||||||
|
- name: Ensure matrix-prometheus-postgres-exporter.service doesn't exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-prometheus-postgres-exporter.service"
|
||||||
|
state: absent
|
@ -1,19 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_prometheus_enabled | bool"
|
- when: matrix_prometheus_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-prometheus
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_prometheus_enabled | bool
|
||||||
when: "run_setup | bool and matrix_prometheus_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-prometheus
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- when: not matrix_prometheus_enabled | bool
|
||||||
when: "run_setup | bool and not matrix_prometheus_enabled | bool"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-prometheus
|
- setup-prometheus
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue