Fix all 300+ ansible-lint-reported errors

This commit is contained in:
Slavi Pantaleev 2023-03-07 17:28:10 +02:00
parent bf95204860
commit dddfee16bc
98 changed files with 942 additions and 895 deletions

View File

@ -1,12 +1,12 @@
--- ---
- when: etherpad_enabled | bool and etherpad_nginx_proxy_dimension_integration_enabled | bool - when: etherpad_enabled | bool and etherpad_nginx_proxy_dimension_integration_enabled | bool
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags: tags:
- install-all - install-all
- setup-all - setup-all
- install-nginx-proxy - install-nginx-proxy
- setup-nginx-proxy - setup-nginx-proxy
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"

View File

@ -1,30 +1,30 @@
--- ---
- when: matrix_playbook_reverse_proxy_type not in ['playbook-managed-nginx', 'other-nginx-non-container'] - name: Fail if reverse-proxy is not nginx
name: Fail if reverse-proxy is not nginx when: matrix_playbook_reverse_proxy_type not in ['playbook-managed-nginx', 'other-nginx-non-container']
ansible.builtin.fail: ansible.builtin.fail:
msg: > msg: >
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using matrix-nginx-proxy. Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using matrix-nginx-proxy.
`matrix_playbook_reverse_proxy_type` ({{ matrix_playbook_reverse_proxy_type }}) indicates that you're using another reverse-proxy. `matrix_playbook_reverse_proxy_type` ({{ matrix_playbook_reverse_proxy_type }}) indicates that you're using another reverse-proxy.
If you're using Traefik, you should configure `etherpad_hostname` and `etherpad_path_prefix` instead. If you're using Traefik, you should configure `etherpad_hostname` and `etherpad_path_prefix` instead.
- when: not matrix_dimension_enabled - name: Fail if Dimension not enabled
name: Fail if Dimension not enabled when: not matrix_dimension_enabled
ansible.builtin.fail: ansible.builtin.fail:
msg: > msg: >
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using Dimension. Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using Dimension.
Looks like Dimension is not enabled in your configuration (judging by `matrix_dimension_enabled`). Looks like Dimension is not enabled in your configuration (judging by `matrix_dimension_enabled`).
Consider configuring `etherpad_hostname` and `etherpad_path_prefix` instead. Consider configuring `etherpad_hostname` and `etherpad_path_prefix` instead.
- when: etherpad_hostname != matrix_server_fqn_dimension - name: Fail if Etherpad hostname does not match Dimension hostname
name: Fail if Etherpad hostname does not match Dimension hostname when: etherpad_hostname != matrix_server_fqn_dimension
ansible.builtin.fail: ansible.builtin.fail:
msg: > msg: >
Etherpad's integration into matrix-nginx-proxy's Dimension server requires that you set `etherpad_hostname` to `matrix_server_fqn_dimension`. Etherpad's integration into matrix-nginx-proxy's Dimension server requires that you set `etherpad_hostname` to `matrix_server_fqn_dimension`.
Consider adding this to your configuration: `{% raw %}etherpad_hostname: "{{ matrix_server_fqn_dimension }}"{% endraw %}` Consider adding this to your configuration: `{% raw %}etherpad_hostname: "{{ matrix_server_fqn_dimension }}"{% endraw %}`
- when: etherpad_nginx_proxy_dimension_integration_path_prefix == '/' - name: Fail if / path prefix used for Etherpad
name: Fail if / path prefix used for Etherpad when: etherpad_nginx_proxy_dimension_integration_path_prefix == '/'
ansible.builtin.fail: ansible.builtin.fail:
msg: > msg: >
Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using a non-`/` path for Etherpad. Etherpad's integration into matrix-nginx-proxy's Dimension server only makes sense if you're using a non-`/` path for Etherpad.

View File

@ -1,9 +1,9 @@
--- ---
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
tags:
- setup-all - setup-all
- setup-aux-files - setup-aux-files
- install-all - install-all
- install-aux-files - install-aux-files
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"

View File

@ -1,30 +1,28 @@
--- ---
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
tags:
- setup-all - setup-all
- install-all - install-all
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
# This needs to always run, because it populates `matrix_user_uid` and `matrix_user_gid`, # This needs to always run, because it populates `matrix_user_uid` and `matrix_user_gid`,
# which are required by many other roles. # which are required by many other roles.
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_matrix_user.yml"
tags:
- always - always
- setup-system-user - setup-system-user
- common - common
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_matrix_user.yml"
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml"
tags:
- setup-all - setup-all
- install-all - install-all
- common - common
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml"
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_well_known.yml"
tags:
- setup-all - setup-all
- setup-ma1sd - setup-ma1sd
- setup-synapse - setup-synapse
@ -37,3 +35,5 @@
- install-dendrite - install-dendrite
- install-conduit - install-conduit
- install-nginx-proxy - install-nginx-proxy
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_well_known.yml"

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-buscarron
- install-all
- install-bot-buscarron
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool" when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
- ansible.builtin.include_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:
- tags:
- setup-all - setup-all
- setup-bot-buscarron - setup-bot-buscarron
- install-all block:
- install-bot-buscarron
- block:
- ansible.builtin.include_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:
- setup-all
- setup-bot-buscarron

View File

@ -1,20 +1,21 @@
--- ---
- block: -
- when: matrix_bot_chatgpt_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_chatgpt_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags: tags:
- setup-all - setup-all
- setup-bot-chatgpt - setup-bot-chatgpt
- install-all - install-all
- install-bot-chatgpt - install-bot-chatgpt
block:
- when: matrix_bot_chatgpt_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- block: - when: matrix_bot_chatgpt_enabled | bool
- when: not matrix_bot_chatgpt_enabled | bool ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags: - tags:
- setup-all - setup-all
- setup-bot-chatgpt - setup-bot-chatgpt
block:
- when: not matrix_bot_chatgpt_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-draupnir
- install-all
- install-bot-draupnir
block:
- when: matrix_bot_draupnir_enabled | bool - when: matrix_bot_draupnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_draupnir_enabled | bool - when: matrix_bot_draupnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-draupnir - setup-bot-draupnir
- install-all block:
- install-bot-draupnir
- block:
- when: not matrix_bot_draupnir_enabled | bool - when: not matrix_bot_draupnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-draupnir

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-go-neb
- install-all
- install-bot-go-neb
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool" when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/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:
- tags:
- setup-all - setup-all
- setup-bot-go-neb - setup-bot-go-neb
- install-all block:
- install-bot-go-neb
- block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/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:
- setup-all
- setup-bot-go-neb

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-honoroit
- install-all
- install-bot-honoroit
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool" when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
- ansible.builtin.include_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:
- tags:
- setup-all - setup-all
- setup-bot-honoroit - setup-bot-honoroit
- install-all block:
- install-bot-honoroit
- block:
- ansible.builtin.include_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:
- setup-all
- setup-bot-honoroit

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-matrix-registration-bot
- install-all
- install-bot-matrix-registration-bot
block:
- when: matrix_bot_matrix_registration_bot_enabled | bool - when: matrix_bot_matrix_registration_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_matrix_registration_bot_enabled | bool - when: matrix_bot_matrix_registration_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-matrix-registration-bot - setup-bot-matrix-registration-bot
- install-all block:
- install-bot-matrix-registration-bot
- block:
- when: not matrix_bot_matrix_registration_bot_enabled | bool - when: not matrix_bot_matrix_registration_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-matrix-registration-bot

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-matrix-reminder-bot
- install-all
- install-bot-matrix-reminder-bot
block:
- when: matrix_bot_matrix_reminder_bot_enabled | bool - when: matrix_bot_matrix_reminder_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_matrix_reminder_bot_enabled | bool - when: matrix_bot_matrix_reminder_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-matrix-reminder-bot - setup-bot-matrix-reminder-bot
- install-all block:
- install-bot-matrix-reminder-bot
- block:
- when: not matrix_bot_matrix_reminder_bot_enabled | bool - when: not matrix_bot_matrix_reminder_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-matrix-reminder-bot

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_bot_maubot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_bot_maubot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-bot-maubot
- install-all
- install-bot-maubot
block:
- when: matrix_bot_maubot_enabled | bool - when: matrix_bot_maubot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_maubot_enabled | bool - when: matrix_bot_maubot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-maubot - setup-bot-maubot
- install-all block:
- install-bot-maubot
- block:
- when: not matrix_bot_maubot_enabled | bool - when: not matrix_bot_maubot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-maubot

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-mjolnir
- install-all
- install-bot-mjolnir
block:
- when: matrix_bot_mjolnir_enabled | bool - when: matrix_bot_mjolnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_mjolnir_enabled | bool - when: matrix_bot_mjolnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-mjolnir - setup-bot-mjolnir
- install-all block:
- install-bot-mjolnir
- block:
- when: not matrix_bot_mjolnir_enabled | bool - when: not matrix_bot_mjolnir_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-mjolnir

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-bot-postmoogle
- install-all
- install-bot-postmoogle
block:
- when: matrix_bot_postmoogle_enabled | bool - when: matrix_bot_postmoogle_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_bot_postmoogle_enabled | bool - when: matrix_bot_postmoogle_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-bot-postmoogle - setup-bot-postmoogle
- install-all block:
- install-bot-postmoogle
- block:
- when: not matrix_bot_postmoogle_enabled | bool - when: not matrix_bot_postmoogle_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-bot-postmoogle

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-appservice-discord
- install-all
- install-appservice-discord
block:
- when: matrix_appservice_discord_enabled | bool - when: matrix_appservice_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_appservice_discord_enabled | bool - when: matrix_appservice_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-appservice-discord - setup-appservice-discord
- install-all block:
- install-appservice-discord
- block:
- when: not matrix_appservice_discord_enabled | bool - when: not matrix_appservice_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-appservice-discord

View File

@ -65,7 +65,10 @@
when: "matrix_appservice_discord_stat_db.stat.exists" when: "matrix_appservice_discord_stat_db.stat.exists"
- name: (Data relocation) Move AppService Discord discord.db file to ./data directory - name: (Data relocation) Move AppService Discord discord.db file to ./data directory
ansible.builtin.command: "mv {{ matrix_appservice_discord_base_path }}/{{ item }} {{ matrix_appservice_discord_data_path }}/{{ item }}" ansible.builtin.command:
cmd: "mv {{ matrix_appservice_discord_base_path }}/{{ item }} {{ matrix_appservice_discord_data_path }}/{{ item }}"
creates: "{{ matrix_appservice_discord_data_path }}/{{ item }}"
removes: "{{ matrix_appservice_discord_base_path }}/{{ item }}"
with_items: with_items:
- discord.db - discord.db
- user-store.db - user-store.db

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-appservice-irc
- install-all
- install-appservice-irc
block:
- when: matrix_appservice_irc_enabled | bool - when: matrix_appservice_irc_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_appservice_irc_enabled | bool - when: matrix_appservice_irc_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-appservice-irc - setup-appservice-irc
- install-all block:
- install-appservice-irc
- block:
- when: not matrix_appservice_irc_enabled | bool - when: not matrix_appservice_irc_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-appservice-irc

View File

@ -108,16 +108,12 @@
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}" group: "{{ matrix_user_groupname }}"
- name: Check if Appservice IRC passkey exists
ansible.builtin.stat:
path: "{{ matrix_appservice_irc_data_path }}/passkey.pem"
register: irc_passkey_file
- name: Generate Appservice IRC passkey if it doesn't exist - name: Generate Appservice IRC passkey if it doesn't exist
ansible.builtin.shell: "{{ matrix_host_command_openssl }} genpkey -out {{ matrix_appservice_irc_data_path }}/passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048" ansible.builtin.shell:
cmd: "{{ matrix_host_command_openssl }} genpkey -out {{ matrix_appservice_irc_data_path }}/passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048"
creates: "{{ matrix_appservice_irc_data_path }}/passkey.pem"
become: true become: true
become_user: "{{ matrix_user_username }}" become_user: "{{ matrix_user_username }}"
when: "not irc_passkey_file.stat.exists"
# In the past, we used to generate the passkey.pem file with root, so permissions may not be okay. # In the past, we used to generate the passkey.pem file with root, so permissions may not be okay.
# Fix it. # Fix it.

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-appservice-kakaotalk
- install-all
- install-appservice-kakaotalk
block:
- when: matrix_appservice_kakaotalk_enabled | bool - when: matrix_appservice_kakaotalk_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_appservice_kakaotalk_enabled | bool - when: matrix_appservice_kakaotalk_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-appservice-kakaotalk - setup-appservice-kakaotalk
- install-all block:
- install-appservice-kakaotalk
- block:
- when: not matrix_appservice_kakaotalk_enabled | bool - when: not matrix_appservice_kakaotalk_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-appservice-kakaotalk

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_appservice_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_appservice_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-appservice-slack
- install-all
- install-appservice-slack
block:
- when: matrix_appservice_slack_enabled | bool - when: matrix_appservice_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_appservice_slack_enabled | bool - when: matrix_appservice_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-appservice-slack - setup-appservice-slack
- install-all block:
- install-appservice-slack
- block:
- when: not matrix_appservice_slack_enabled | bool - when: not matrix_appservice_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-appservice-slack

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_appservice_webhooks_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_appservice_webhooks_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-appservice-webhooks
- install-all
- install-appservice-webhooks
block:
- when: matrix_appservice_webhooks_enabled | bool - when: matrix_appservice_webhooks_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_appservice_webhooks_enabled | bool - when: matrix_appservice_webhooks_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-appservice-webhooks - setup-appservice-webhooks
- install-all block:
- install-appservice-webhooks
- block:
- when: not matrix_appservice_webhooks_enabled | bool - when: not matrix_appservice_webhooks_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-appservice-webhooks

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-beeper-linkedin
- install-all
- install-beeper-linkedin
block:
- when: matrix_beeper_linkedin_enabled | bool - when: matrix_beeper_linkedin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_beeper_linkedin_enabled | bool - when: matrix_beeper_linkedin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-beeper-linkedin - setup-beeper-linkedin
- install-all block:
- install-beeper-linkedin
- block:
- when: not matrix_beeper_linkedin_enabled | bool - when: not matrix_beeper_linkedin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-beeper-linkedin

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-go-skype-bridge
- install-all
- install-go-skype-bridge
block:
- when: matrix_go_skype_bridge_enabled | bool - when: matrix_go_skype_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_go_skype_bridge_enabled | bool - when: matrix_go_skype_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-go-skype-bridge - setup-go-skype-bridge
- install-all block:
- install-go-skype-bridge
- block:
- when: not matrix_go_skype_bridge_enabled | bool - when: not matrix_go_skype_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-go-skype-bridge

View File

@ -97,11 +97,17 @@
when: "matrix_go_skype_bridge_stat_database.stat.exists" when: "matrix_go_skype_bridge_stat_database.stat.exists"
- name: (Data relocation) Move go-skype-bridge database file to ./data directory - name: (Data relocation) Move go-skype-bridge database file to ./data directory
ansible.builtin.command: "mv {{ matrix_go_skype_bridge_base_path }}/go-skype-bridge.db {{ matrix_go_skype_bridge_data_path }}/go-skype-bridge.db" ansible.builtin.command:
cmd: "mv {{ matrix_go_skype_bridge_base_path }}/go-skype-bridge.db {{ matrix_go_skype_bridge_data_path }}/go-skype-bridge.db"
creates: "{{ matrix_go_skype_bridge_data_path }}/go-skype-bridge.db"
removes: "{{ matrix_go_skype_bridge_base_path }}/go-skype-bridge.db"
when: "matrix_go_skype_bridge_stat_database.stat.exists" when: "matrix_go_skype_bridge_stat_database.stat.exists"
- name: (Data relocation) Move go-skype-bridge mx-state file to ./data directory - name: (Data relocation) Move go-skype-bridge mx-state file to ./data directory
ansible.builtin.command: "mv {{ matrix_go_skype_bridge_base_path }}/mx-state.json {{ matrix_go_skype_bridge_data_path }}/mx-state.json" ansible.builtin.command:
cmd: "mv {{ matrix_go_skype_bridge_base_path }}/mx-state.json {{ matrix_go_skype_bridge_data_path }}/mx-state.json"
creates: "{{ matrix_go_skype_bridge_data_path }}/mx-state.json"
removes: "{{ matrix_go_skype_bridge_base_path }}/mx-state.json"
when: "matrix_go_skype_bridge_stat_mx_state.stat.exists" when: "matrix_go_skype_bridge_stat_mx_state.stat.exists"
- name: Ensure go-skype-bridge config.yaml installed - name: Ensure go-skype-bridge config.yaml installed

View File

@ -1,17 +1,17 @@
--- ---
- block: - tags:
- when: matrix_heisenbridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all - setup-all
- setup-heisenbridge - setup-heisenbridge
- install-all - install-all
- install-heisenbridge - install-heisenbridge
block:
- when: matrix_heisenbridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- block: - tags:
- when: not matrix_heisenbridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-heisenbridge - setup-heisenbridge
block:
- when: not matrix_heisenbridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -122,15 +122,15 @@ matrix_hookshot_jira_oauth_redirect_uri: "{{ matrix_hookshot_urlprefix }}{{ matr
# No need to change these # No need to change these
matrix_hookshot_generic_enabled: true matrix_hookshot_generic_enabled: true
matrix_hookshot_generic_enableHttpGet: false matrix_hookshot_generic_enableHttpGet: false # noqa var-naming
# Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks" # Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}" matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
# urlprefix gets updated with protocol & port in group_vars/matrix_servers # urlprefix gets updated with protocol & port in group_vars/matrix_servers
matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}" matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}" # noqa var-naming
# If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap # If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
matrix_hookshot_generic_userIdPrefix: '_webhooks_' matrix_hookshot_generic_userIdPrefix: '_webhooks_' # noqa var-naming
matrix_hookshot_generic_allowJsTransformationFunctions: false matrix_hookshot_generic_allowJsTransformationFunctions: false # noqa var-naming
matrix_hookshot_generic_waitForComplete: false matrix_hookshot_generic_waitForComplete: false # noqa var-naming
matrix_hookshot_feeds_enabled: true matrix_hookshot_feeds_enabled: true

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_hookshot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_hookshot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-hookshot
- install-all
- install-hookshot
block:
- when: matrix_hookshot_enabled | bool - when: matrix_hookshot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_hookshot_enabled | bool - when: matrix_hookshot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-hookshot - setup-hookshot
- install-all block:
- install-hookshot
- block:
- when: not matrix_hookshot_enabled | bool - when: not matrix_hookshot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-hookshot

View File

@ -57,7 +57,9 @@
register: hookshot_passkey_file register: hookshot_passkey_file
- name: Generate hookshot passkey if it doesn't exist - name: Generate hookshot passkey if it doesn't exist
ansible.builtin.shell: "{{ matrix_host_command_openssl }} genpkey -out {{ matrix_hookshot_base_path }}/passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096" ansible.builtin.shell:
cmd: "{{ matrix_host_command_openssl }} genpkey -out {{ matrix_hookshot_base_path }}/passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096"
creates: "{{ matrix_hookshot_base_path }}/passkey.pem"
become: true become: true
become_user: "{{ matrix_user_username }}" become_user: "{{ matrix_user_username }}"
when: "not hookshot_passkey_file.stat.exists" when: "not hookshot_passkey_file.stat.exists"

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mautrix-discord
- install-all
- install-mautrix-discord
block:
- when: matrix_mautrix_discord_enabled | bool - when: matrix_mautrix_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_discord_enabled | bool - when: matrix_mautrix_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-discord - setup-mautrix-discord
- install-all block:
- install-mautrix-discord
- block:
- when: not matrix_mautrix_discord_enabled | bool - when: not matrix_mautrix_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-discord

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- 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:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- 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"
- block: - tags:
- setup-all
- setup-mautrix-facebook
- install-all
- install-mautrix-facebook
block:
- when: matrix_mautrix_facebook_enabled | bool - when: matrix_mautrix_facebook_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_facebook_enabled | bool - when: matrix_mautrix_facebook_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-facebook - setup-mautrix-facebook
- install-all block:
- install-mautrix-facebook
- block:
- when: not matrix_mautrix_facebook_enabled | bool - when: not matrix_mautrix_facebook_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-facebook

View File

@ -91,7 +91,10 @@
when: "matrix_mautrix_facebook_stat_database.stat.exists" when: "matrix_mautrix_facebook_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-facebook database file to ./data directory - name: (Data relocation) Move mautrix-facebook database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db {{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db {{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db"
creates: "{{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db"
removes: "{{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db"
when: "matrix_mautrix_facebook_stat_database.stat.exists" when: "matrix_mautrix_facebook_stat_database.stat.exists"
- name: Ensure mautrix-facebook config.yaml installed - name: Ensure mautrix-facebook config.yaml installed

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_googlechat_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_googlechat_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-googlechat
- install-all
- install-mautrix-googlechat
block:
- when: matrix_mautrix_googlechat_enabled | bool - when: matrix_mautrix_googlechat_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_googlechat_enabled | bool - when: matrix_mautrix_googlechat_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-googlechat - setup-mautrix-googlechat
- install-all block:
- install-mautrix-googlechat
- block:
- when: not matrix_mautrix_googlechat_enabled | bool - when: not matrix_mautrix_googlechat_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-googlechat

View File

@ -91,7 +91,10 @@
when: "matrix_mautrix_googlechat_stat_database.stat.exists" when: "matrix_mautrix_googlechat_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-googlechat database file to ./data directory - name: (Data relocation) Move mautrix-googlechat database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_googlechat_base_path }}/mautrix-googlechat.db {{ matrix_mautrix_googlechat_data_path }}/mautrix-googlechat.db" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_googlechat_base_path }}/mautrix-googlechat.db {{ matrix_mautrix_googlechat_data_path }}/mautrix-googlechat.db"
creates: "{{ matrix_mautrix_googlechat_data_path }}/mautrix-googlechat.db"
removes: "{{ matrix_mautrix_googlechat_base_path }}/mautrix-googlechat.db"
when: "matrix_mautrix_googlechat_stat_database.stat.exists" when: "matrix_mautrix_googlechat_stat_database.stat.exists"
- name: Ensure mautrix-googlechat config.yaml installed - name: Ensure mautrix-googlechat config.yaml installed

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_hangouts_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_hangouts_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-hangouts
- install-all
- install-mautrix-hangouts
block:
- when: matrix_mautrix_hangouts_enabled | bool - when: matrix_mautrix_hangouts_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_hangouts_enabled | bool - when: matrix_mautrix_hangouts_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-hangouts - setup-mautrix-hangouts
- install-all block:
- install-mautrix-hangouts
- block:
- when: not matrix_mautrix_hangouts_enabled | bool - when: not matrix_mautrix_hangouts_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-hangouts

View File

@ -91,7 +91,10 @@
when: "matrix_mautrix_hangouts_stat_database.stat.exists" when: "matrix_mautrix_hangouts_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-hangouts database file to ./data directory - name: (Data relocation) Move mautrix-hangouts database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_hangouts_base_path }}/mautrix-hangouts.db {{ matrix_mautrix_hangouts_data_path }}/mautrix-hangouts.db" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_hangouts_base_path }}/mautrix-hangouts.db {{ matrix_mautrix_hangouts_data_path }}/mautrix-hangouts.db"
creates: "{{ matrix_mautrix_hangouts_data_path }}/mautrix-hangouts.db"
removes: "{{ matrix_mautrix_hangouts_base_path }}/mautrix-hangouts.db"
when: "matrix_mautrix_hangouts_stat_database.stat.exists" when: "matrix_mautrix_hangouts_stat_database.stat.exists"
- name: Ensure mautrix-hangouts config.yaml installed - name: Ensure mautrix-hangouts config.yaml installed

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_instagram_enabled | bool and matrix_mautrix_instagram_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_instagram_enabled | bool and matrix_mautrix_instagram_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-instagram
- install-all
- install-mautrix-instagram
block:
- when: matrix_mautrix_instagram_enabled | bool - when: matrix_mautrix_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_instagram_enabled | bool - when: matrix_mautrix_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-instagram - setup-mautrix-instagram
- install-all block:
- install-mautrix-instagram
- block:
- when: not matrix_mautrix_instagram_enabled | bool - when: not matrix_mautrix_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-instagram

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_signal_enabled | bool and matrix_mautrix_signal_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_signal_enabled | bool and matrix_mautrix_signal_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-signal
- install-all
- install-mautrix-signal
block:
- when: matrix_mautrix_signal_enabled | bool - when: matrix_mautrix_signal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_signal_enabled | bool - when: matrix_mautrix_signal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-signal - setup-mautrix-signal
- install-all block:
- install-mautrix-signal
- block:
- when: not matrix_mautrix_signal_enabled | bool - when: not matrix_mautrix_signal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-signal

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mautrix-slack
- install-all
- install-mautrix-slack
block:
- when: matrix_mautrix_slack_enabled | bool - when: matrix_mautrix_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_slack_enabled | bool - when: matrix_mautrix_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-slack - setup-mautrix-slack
- install-all block:
- install-mautrix-slack
- block:
- when: not matrix_mautrix_slack_enabled | bool - when: not matrix_mautrix_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-slack

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- 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:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- 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"
- block: - tags:
- setup-all
- setup-mautrix-telegram
- install-all
- install-mautrix-telegram
block:
- when: matrix_mautrix_telegram_enabled | bool - when: matrix_mautrix_telegram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_telegram_enabled | bool - when: matrix_mautrix_telegram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-telegram - setup-mautrix-telegram
- install-all block:
- install-mautrix-telegram
- block:
- when: not matrix_mautrix_telegram_enabled | bool - when: not matrix_mautrix_telegram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-telegram

View File

@ -116,7 +116,10 @@
when: "matrix_mautrix_telegram_stat_database.stat.exists" when: "matrix_mautrix_telegram_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-telegram database file to ./data directory - name: (Data relocation) Move mautrix-telegram database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db {{ matrix_mautrix_telegram_data_path }}/mautrix-telegram.db" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db {{ matrix_mautrix_telegram_data_path }}/mautrix-telegram.db"
creates: "{{ matrix_mautrix_telegram_data_path }}/mautrix-telegram.db"
removes: "{{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db"
when: "matrix_mautrix_telegram_stat_database.stat.exists" when: "matrix_mautrix_telegram_stat_database.stat.exists"
- name: Ensure mautrix-telegram config.yaml installed - name: Ensure mautrix-telegram config.yaml installed

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_twitter_enabled | bool and matrix_mautrix_twitter_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_twitter_enabled | bool and matrix_mautrix_twitter_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-twitter
- install-all
- install-mautrix-twitter
block:
- when: matrix_mautrix_twitter_enabled | bool - when: matrix_mautrix_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_twitter_enabled | bool - when: matrix_mautrix_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-twitter - setup-mautrix-twitter
- install-all block:
- install-mautrix-twitter
- block:
- when: not matrix_mautrix_twitter_enabled | bool - when: not matrix_mautrix_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-twitter

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mautrix_whatsapp_enabled | bool and matrix_mautrix_whatsapp_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mautrix_whatsapp_enabled | bool and matrix_mautrix_whatsapp_metrics_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mautrix-whatsapp
- install-all
- install-mautrix-whatsapp
block:
- when: matrix_mautrix_whatsapp_enabled | bool - when: matrix_mautrix_whatsapp_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mautrix_whatsapp_enabled | bool - when: matrix_mautrix_whatsapp_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mautrix-whatsapp - setup-mautrix-whatsapp
- install-all block:
- install-mautrix-whatsapp
- block:
- when: not matrix_mautrix_whatsapp_enabled | bool - when: not matrix_mautrix_whatsapp_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mautrix-whatsapp

View File

@ -97,11 +97,17 @@
when: "matrix_mautrix_whatsapp_stat_database.stat.exists" when: "matrix_mautrix_whatsapp_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-whatsapp database file to ./data directory - name: (Data relocation) Move mautrix-whatsapp database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_whatsapp_base_path }}/mautrix-whatsapp.db {{ matrix_mautrix_whatsapp_data_path }}/mautrix-whatsapp.db" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_whatsapp_base_path }}/mautrix-whatsapp.db {{ matrix_mautrix_whatsapp_data_path }}/mautrix-whatsapp.db"
creates: "{{ matrix_mautrix_whatsapp_data_path }}/mautrix-whatsapp.db"
removes: "{{ matrix_mautrix_whatsapp_base_path }}/mautrix-whatsapp.db"
when: "matrix_mautrix_whatsapp_stat_database.stat.exists" when: "matrix_mautrix_whatsapp_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-whatsapp mx-state file to ./data directory - name: (Data relocation) Move mautrix-whatsapp mx-state file to ./data directory
ansible.builtin.command: "mv {{ matrix_mautrix_whatsapp_base_path }}/mx-state.json {{ matrix_mautrix_whatsapp_data_path }}/mx-state.json" ansible.builtin.command:
cmd: "mv {{ matrix_mautrix_whatsapp_base_path }}/mx-state.json {{ matrix_mautrix_whatsapp_data_path }}/mx-state.json"
creates: "{{ matrix_mautrix_whatsapp_data_path }}/mx-state.json"
removes: "{{ matrix_mautrix_whatsapp_base_path }}/mx-state.json"
when: "matrix_mautrix_whatsapp_stat_mx_state.stat.exists" when: "matrix_mautrix_whatsapp_stat_mx_state.stat.exists"
- name: Ensure mautrix-whatsapp config.yaml installed - name: Ensure mautrix-whatsapp config.yaml installed

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mx-puppet-discord
- install-all
- install-mx-puppet-discord
block:
- when: matrix_mx_puppet_discord_enabled | bool - when: matrix_mx_puppet_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_discord_enabled | bool - when: matrix_mx_puppet_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-discord - setup-mx-puppet-discord
- install-all block:
- install-mx-puppet-discord
- block:
- when: not matrix_mx_puppet_discord_enabled | bool - when: not matrix_mx_puppet_discord_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-discord

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mx-puppet-groupme
- install-all
- install-mx-puppet-groupme
block:
- when: matrix_mx_puppet_groupme_enabled | bool - when: matrix_mx_puppet_groupme_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_groupme_enabled | bool - when: matrix_mx_puppet_groupme_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-groupme - setup-mx-puppet-groupme
- install-all block:
- install-mx-puppet-groupme
- block:
- when: not matrix_mx_puppet_groupme_enabled | bool - when: not matrix_mx_puppet_groupme_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-groupme

View File

@ -29,7 +29,10 @@
when: "matrix_mx_puppet_groupme_stat_database.stat.exists" when: "matrix_mx_puppet_groupme_stat_database.stat.exists"
- name: (Data relocation) Move mx-puppet-groupme database file to ./data directory - name: (Data relocation) Move mx-puppet-groupme database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mx_puppet_groupme_base_path }}/database.db {{ matrix_mx_puppet_groupme_data_path }}/database.db" ansible.builtin.command:
cmd: "mv {{ matrix_mx_puppet_groupme_base_path }}/database.db {{ matrix_mx_puppet_groupme_data_path }}/database.db"
creates: "{{ matrix_mx_puppet_groupme_data_path }}/database.db"
removes: "{{ matrix_mx_puppet_groupme_base_path }}/database.db"
when: "matrix_mx_puppet_groupme_stat_database.stat.exists" when: "matrix_mx_puppet_groupme_stat_database.stat.exists"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mx-puppet-instagram
- install-all
- install-mx-puppet-instagram
block:
- when: matrix_mx_puppet_instagram_enabled | bool - when: matrix_mx_puppet_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_instagram_enabled | bool - when: matrix_mx_puppet_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-instagram - setup-mx-puppet-instagram
- install-all block:
- install-mx-puppet-instagram
- block:
- when: not matrix_mx_puppet_instagram_enabled | bool - when: not matrix_mx_puppet_instagram_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-instagram

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mx_puppet_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mx_puppet_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mx-puppet-slack
- install-all
- install-mx-puppet-slack
block:
- when: matrix_mx_puppet_slack_enabled | bool - when: matrix_mx_puppet_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_slack_enabled | bool - when: matrix_mx_puppet_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-slack - setup-mx-puppet-slack
- install-all block:
- install-mx-puppet-slack
- block:
- when: not matrix_mx_puppet_slack_enabled | bool - when: not matrix_mx_puppet_slack_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-slack

View File

@ -91,7 +91,10 @@
when: "matrix_mx_puppet_slack_enabled | bool and matrix_mx_puppet_slack_container_image_self_build" when: "matrix_mx_puppet_slack_enabled | bool and matrix_mx_puppet_slack_container_image_self_build"
- name: (Data relocation) Move mx-puppet-slack database file to ./data directory - name: (Data relocation) Move mx-puppet-slack database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mx_puppet_slack_base_path }}/database.db {{ matrix_mx_puppet_slack_data_path }}/database.db" ansible.builtin.command:
cmd: "mv {{ matrix_mx_puppet_slack_base_path }}/database.db {{ matrix_mx_puppet_slack_data_path }}/database.db"
creates: "{{ matrix_mx_puppet_slack_data_path }}/database.db"
removes: "{{ matrix_mx_puppet_slack_base_path }}/database.db"
when: "matrix_mx_puppet_slack_stat_database.stat.exists" when: "matrix_mx_puppet_slack_stat_database.stat.exists"
- name: Ensure mx-puppet-slack config.yaml installed - name: Ensure mx-puppet-slack config.yaml installed

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-mx-puppet-steam
- install-all
- install-mx-puppet-steam
block:
- when: matrix_mx_puppet_steam_enabled | bool - when: matrix_mx_puppet_steam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_steam_enabled | bool - when: matrix_mx_puppet_steam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-steam - setup-mx-puppet-steam
- install-all block:
- install-mx-puppet-steam
- block:
- when: not matrix_mx_puppet_steam_enabled | bool - when: not matrix_mx_puppet_steam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-steam

View File

@ -29,7 +29,10 @@
when: "matrix_mx_puppet_steam_stat_database.stat.exists" when: "matrix_mx_puppet_steam_stat_database.stat.exists"
- name: (Data relocation) Move mx-puppet-steam database file to ./data directory - name: (Data relocation) Move mx-puppet-steam database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mx_puppet_steam_base_path }}/database.db {{ matrix_mx_puppet_steam_data_path }}/database.db" ansible.builtin.command:
cmd: "mv {{ matrix_mx_puppet_steam_base_path }}/database.db {{ matrix_mx_puppet_steam_data_path }}/database.db"
creates: "{{ matrix_mx_puppet_steam_data_path }}/database.db"
removes: "{{ matrix_mx_puppet_steam_base_path }}/database.db"
when: "matrix_mx_puppet_steam_stat_database.stat.exists" when: "matrix_mx_puppet_steam_stat_database.stat.exists"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_mx_puppet_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_mx_puppet_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-mx-puppet-twitter
- install-all
- install-mx-puppet-twitter
block:
- when: matrix_mx_puppet_twitter_enabled | bool - when: matrix_mx_puppet_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_mx_puppet_twitter_enabled | bool - when: matrix_mx_puppet_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-mx-puppet-twitter - setup-mx-puppet-twitter
- install-all block:
- install-mx-puppet-twitter
- block:
- when: not matrix_mx_puppet_twitter_enabled | bool - when: not matrix_mx_puppet_twitter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-mx-puppet-twitter

View File

@ -29,7 +29,10 @@
when: "matrix_mx_puppet_twitter_stat_database.stat.exists" when: "matrix_mx_puppet_twitter_stat_database.stat.exists"
- name: (Data relocation) Move mx-puppet-twitter database file to ./data directory - name: (Data relocation) Move mx-puppet-twitter database file to ./data directory
ansible.builtin.command: "mv {{ matrix_mx_puppet_twitter_base_path }}/database.db {{ matrix_mx_puppet_twitter_data_path }}/database.db" ansible.builtin.command:
cmd: "mv {{ matrix_mx_puppet_twitter_base_path }}/database.db {{ matrix_mx_puppet_twitter_data_path }}/database.db"
creates: "{{ matrix_mx_puppet_twitter_data_path }}/database.db"
removes: "{{ matrix_mx_puppet_twitter_base_path }}/database.db"
when: "matrix_mx_puppet_twitter_stat_database.stat.exists" when: "matrix_mx_puppet_twitter_stat_database.stat.exists"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-matrix-sms-bridge
- install-all
- install-matrix-sms-bridge
block:
- when: matrix_sms_bridge_enabled | bool - when: matrix_sms_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_sms_bridge_enabled | bool - when: matrix_sms_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-matrix-sms-bridge - setup-matrix-sms-bridge
- install-all block:
- install-matrix-sms-bridge
- block:
- when: not matrix_sms_bridge_enabled | bool - when: not matrix_sms_bridge_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-matrix-sms-bridge

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- 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:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- 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"
- block: - tags:
- setup-all
- setup-cactus-comments
- install-all
- install-cactus-comments
block:
- when: matrix_cactus_comments_enabled | bool - when: matrix_cactus_comments_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_cactus_comments_enabled | bool - when: matrix_cactus_comments_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-cactus-comments - setup-cactus-comments
- install-all block:
- install-cactus-comments
- block:
- when: not matrix_cactus_comments_enabled | bool - when: not matrix_cactus_comments_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-cactus-comments

View File

@ -1,26 +1,26 @@
--- ---
- block: - tags:
- setup-all
- setup-client-cinny
- install-all
- install-client-cinny
block:
- when: matrix_client_cinny_enabled | bool - when: matrix_client_cinny_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_client_cinny_enabled | bool - when: matrix_client_cinny_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-client-cinny - setup-client-cinny
- install-all block:
- install-client-cinny
- block:
- when: not matrix_client_cinny_enabled | bool - when: not matrix_client_cinny_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-client-cinny
- block: - tags:
- self-check
block:
- when: matrix_client_cinny_enabled | bool - when: matrix_client_cinny_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
tags:
- self-check

View File

@ -1,6 +1,11 @@
--- ---
- block: - tags:
- setup-all
- setup-client-element
- install-all
- install-client-element
block:
- when: matrix_client_element_enabled | bool - when: matrix_client_element_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
@ -9,21 +14,16 @@
- when: matrix_client_element_enabled | bool - when: matrix_client_element_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- install-all block:
- install-client-element
- block:
- when: not matrix_client_element_enabled | bool - when: not matrix_client_element_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-client-element
- block: - tags:
- self-check
block:
- when: matrix_client_element_enabled | bool - when: matrix_client_element_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
tags:
- self-check

View File

@ -56,6 +56,7 @@
--tag={{ matrix_client_element_docker_image }} --tag={{ matrix_client_element_docker_image }}
--file={{ matrix_client_element_docker_src_files_path }}/Dockerfile --file={{ matrix_client_element_docker_src_files_path }}/Dockerfile
{{ matrix_client_element_docker_src_files_path }} {{ matrix_client_element_docker_src_files_path }}
changed_when: true
when: matrix_client_element_container_image_self_build | bool when: matrix_client_element_container_image_self_build | bool
- name: Ensure Element configuration installed - name: Ensure Element configuration installed

View File

@ -1,26 +1,26 @@
--- ---
- block: - tags:
- setup-all
- setup-client-hydrogen
- install-all
- install-client-hydrogen
block:
- when: matrix_client_hydrogen_enabled | bool - when: matrix_client_hydrogen_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_client_hydrogen_enabled | bool - when: matrix_client_hydrogen_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-client-hydrogen - setup-client-hydrogen
- install-all block:
- install-client-hydrogen
- block:
- when: not matrix_client_hydrogen_enabled | bool - when: not matrix_client_hydrogen_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-client-hydrogen
- block: - tags:
- self-check
block:
- when: matrix_client_hydrogen_enabled | bool - when: matrix_client_hydrogen_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
tags:
- self-check

View File

@ -1,6 +1,6 @@
--- ---
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
tags:
- run-docker-prune - run-docker-prune
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"

View File

@ -1,17 +1,17 @@
--- ---
- block: - tags:
- when: matrix_conduit_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all - setup-all
- setup-conduit - setup-conduit
- install-all - install-all
- install-conduit - install-conduit
block:
- when: matrix_conduit_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- block: - tags:
- when: not matrix_conduit_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-conduit - setup-conduit
block:
- when: not matrix_conduit_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -1,26 +1,26 @@
--- ---
- block: - tags:
- setup-all
- setup-corporal
- install-all
- install-corporal
block:
- when: matrix_corporal_enabled | bool - when: matrix_corporal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_corporal_enabled | bool - when: matrix_corporal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-corporal - setup-corporal
- install-all block:
- install-corporal
- block:
- when: not matrix_corporal_enabled | bool - when: not matrix_corporal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-corporal
- block: - tags:
- self-check
block:
- when: matrix_corporal_enabled | bool - when: matrix_corporal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
tags:
- self-check

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-coturn
- install-all
- install-coturn
block:
- when: matrix_coturn_enabled | bool - when: matrix_coturn_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_coturn_enabled | bool - when: matrix_coturn_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-coturn - setup-coturn
- install-all block:
- install-coturn
- block:
- when: not matrix_coturn_enabled | bool - when: not matrix_coturn_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-coturn

View File

@ -62,8 +62,8 @@
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}" group: "{{ matrix_user_groupname }}"
- when: matrix_coturn_docker_network not in ['', 'host'] - name: Ensure Coturn network is created in Docker
name: Ensure Coturn network is created in Docker when: matrix_coturn_docker_network not in ['', 'host']
community.docker.docker_network: community.docker.docker_network:
name: "{{ matrix_coturn_docker_network }}" name: "{{ matrix_coturn_docker_network }}"
driver: bridge driver: bridge

View File

@ -1,35 +1,35 @@
--- ---
- block: - tags:
- setup-all
- setup-dendrite
- install-all
- install-dendrite
block:
- when: matrix_dendrite_enabled | bool - when: matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_dendrite_enabled | bool - when: matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-dendrite - setup-dendrite
- install-all block:
- install-dendrite
- block:
- when: not matrix_dendrite_enabled | bool - when: not matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-dendrite
- block: - tags:
- self-check
block:
- when: matrix_dendrite_enabled | bool - when: matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
- when: matrix_dendrite_enabled | bool - when: matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
tags:
- self-check
- block: - tags:
- register-user
block:
- when: matrix_dendrite_enabled | bool - when: matrix_dendrite_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
tags:
- register-user

View File

@ -42,16 +42,12 @@
delay: "{{ devture_playbook_help_container_retries_delay }}" delay: "{{ devture_playbook_help_container_retries_delay }}"
until: result is not failed until: result is not failed
- name: Check if a Dendrite signing key exists
ansible.builtin.stat:
path: "{{ matrix_dendrite_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.pem"
register: matrix_dendrite_signing_key_stat
# We do this so that the signing key would get generated. # We do this so that the signing key would get generated.
# We don't use the `docker_container` module, because using it with `cap_drop` requires # We don't use the `docker_container` module, because using it with `cap_drop` requires
# a very recent version, which is not available for a lot of people yet. # a very recent version, which is not available for a lot of people yet.
- name: Generate Dendrite signing key - name: Generate Dendrite signing key
ansible.builtin.command: | ansible.builtin.command:
cmd: |
docker run docker run
--rm --rm
--name=matrix-dendrite-config --name=matrix-dendrite-config
@ -59,7 +55,7 @@
--mount type=bind,src={{ matrix_dendrite_config_dir_path }},dst=/data --mount type=bind,src={{ matrix_dendrite_config_dir_path }},dst=/data
{{ matrix_dendrite_docker_image }} --private-key=/data/{{ matrix_server_fqn_matrix }}.signing.pem {{ matrix_dendrite_docker_image }} --private-key=/data/{{ matrix_server_fqn_matrix }}.signing.pem
generate generate
when: "not matrix_dendrite_signing_key_stat.stat.exists" creates: "{{ matrix_dendrite_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.pem"
- name: Ensure Dendrite server key exists - name: Ensure Dendrite server key exists
ansible.builtin.file: ansible.builtin.file:

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-dimension
- install-all
- install-dimension
block:
- when: matrix_dimension_enabled | bool - when: matrix_dimension_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_dimension_enabled | bool - when: matrix_dimension_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-dimension - setup-dimension
- install-all block:
- install-dimension
- block:
- when: not matrix_dimension_enabled | bool - when: not matrix_dimension_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-dimension

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-dynamic-dns
- install-all
- install-dynamic-dns
block:
- when: matrix_dynamic_dns_enabled | bool - when: matrix_dynamic_dns_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_dynamic_dns_enabled | bool - when: matrix_dynamic_dns_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-dynamic-dns - setup-dynamic-dns
- install-all block:
- install-dynamic-dns
- block:
- when: not matrix_dynamic_dns_enabled | bool - when: not matrix_dynamic_dns_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-dynamic-dns

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-email2matrix
- install-all
- install-email2matrix
block:
- when: matrix_email2matrix_enabled | bool - when: matrix_email2matrix_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_email2matrix_enabled | bool - when: matrix_email2matrix_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-email2matrix - setup-email2matrix
- install-all block:
- install-email2matrix
- block:
- when: not matrix_email2matrix_enabled | bool - when: not matrix_email2matrix_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-email2matrix

View File

@ -1,27 +1,32 @@
--- ---
- block: - tags:
- when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/init_additional_jvb.yml"
tags:
- setup-additional-jitsi-jvb - setup-additional-jitsi-jvb
- install-additional-jitsi-jvb - install-additional-jitsi-jvb
block:
- block:
- when: matrix_jitsi_enabled | bool - when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/init_additional_jvb.yml"
- when: matrix_jitsi_enabled | bool - tags:
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_base.yml"
tags:
- setup-all - setup-all
- setup-jitsi - setup-jitsi
- setup-additional-jitsi-jvb - setup-additional-jitsi-jvb
- install-all - install-all
- install-jitsi - install-jitsi
- install-additional-jitsi-jvb - install-additional-jitsi-jvb
block:
- when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- block: - when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_base.yml"
- tags:
- setup-all
- setup-jitsi
- install-all
- install-jitsi
block:
- when: matrix_jitsi_enabled | bool - when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_web_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_web_install.yml"
@ -30,13 +35,11 @@
- when: matrix_jitsi_enabled | bool - when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jicofo_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jicofo_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-jitsi - setup-jitsi
- install-all block:
- install-jitsi
- block:
- when: not matrix_jitsi_enabled | bool - when: not matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_web_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_web_uninstall.yml"
@ -45,31 +48,28 @@
- when: not matrix_jitsi_enabled | bool - when: not matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jicofo_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jicofo_uninstall.yml"
tags:
- setup-all
- setup-jitsi
- block: - tags:
- when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jvb_install.yml"
tags:
- setup-all - setup-all
- setup-jitsi - setup-jitsi
- setup-additional-jitsi-jvb - setup-additional-jitsi-jvb
- install-all - install-all
- install-jitsi - install-jitsi
- install-additional-jitsi-jvb - install-additional-jitsi-jvb
block:
- when: matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jvb_install.yml"
- block: - tags:
- when: not matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jvb_uninstall.yml"
tags:
- setup-all - setup-all
- setup-jitsi - setup-jitsi
- setup-additional-jitsi-jvb - setup-additional-jitsi-jvb
block:
- when: not matrix_jitsi_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_jitsi_jvb_uninstall.yml"
- block: - tags:
- self-check
block:
- when: matrix_jitsi_enable_auth | bool and matrix_jitsi_auth_type == 'matrix' - when: matrix_jitsi_enable_auth | bool and matrix_jitsi_auth_type == 'matrix'
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_matrix_auth.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_matrix_auth.yml"
tags:
- self-check

View File

@ -5,11 +5,16 @@
repo: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_location }}" repo: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_location }}"
dest: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_target }}" dest: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_target }}"
version: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_version }}" version: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_version }}"
become: true
become_user: "{{ matrix_user_username }}"
- name: Install Prosody Auth Matrix User Verification Plugin - name: Install Prosody Auth Matrix User Verification Plugin
ansible.builtin.copy: ansible.builtin.copy:
remote_src: true remote_src: true
src: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_target }}/{{ item.path }}" src: "{{ matrix_jitsi_prosody_auth_matrix_user_verification_repo_target }}/{{ item.path }}"
dest: "{{ matrix_jitsi_prosody_plugins_path }}/{{ item.path }}" dest: "{{ matrix_jitsi_prosody_plugins_path }}/{{ item.path }}"
mode: 0644
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
with_items: "{{ matrix_jitsi_prosody_auth_matrix_files }}" with_items: "{{ matrix_jitsi_prosody_auth_matrix_files }}"
when: item.when | bool when: item.when | bool

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_ldap_registration_proxy_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_ldap_registration_proxy_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-matrix-ldap-registration-proxy
- install-all
- install-matrix-ldap-registration-proxy
block:
- when: matrix_ldap_registration_proxy_enabled | bool - when: matrix_ldap_registration_proxy_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_ldap_registration_proxy_enabled | bool - when: matrix_ldap_registration_proxy_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-matrix-ldap-registration-proxy - setup-matrix-ldap-registration-proxy
- install-all block:
- install-matrix-ldap-registration-proxy
- block:
- when: not matrix_ldap_registration_proxy_enabled | bool - when: not matrix_ldap_registration_proxy_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-matrix-ldap-registration-proxy

View File

@ -1,25 +1,25 @@
--- ---
- block: - tags:
- setup-all
- setup-ma1sd
- install-all
- install-ma1sd
block:
- when: matrix_ma1sd_enabled | bool - when: matrix_ma1sd_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_ma1sd_enabled | bool - when: matrix_ma1sd_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all
- setup-ma1sd
- install-all
- install-ma1sd
- block: - tags:
- setup-ma1sd
block:
- when: not matrix_ma1sd_enabled | bool - when: not matrix_ma1sd_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-ma1sd
- block: - tags:
- self-check
block:
- when: matrix_ma1sd_enabled | bool - when: matrix_ma1sd_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check.yml"
tags:
- self-check

View File

@ -89,6 +89,7 @@
chdir: "{{ matrix_ma1sd_docker_src_files_path }}" chdir: "{{ matrix_ma1sd_docker_src_files_path }}"
environment: environment:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
changed_when: true
when: matrix_ma1sd_git_pull_results.changed when: matrix_ma1sd_git_pull_results.changed
- name: Ensure ma1sd Docker image is tagged correctly - name: Ensure ma1sd Docker image is tagged correctly

View File

@ -1,17 +1,17 @@
--- ---
- block: - tags:
- when: matrix_mailer_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all - setup-all
- setup-mailer - setup-mailer
- install-all - install-all
- install-mailer - install-mailer
block:
- when: matrix_mailer_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- block: - tags:
- when: not matrix_mailer_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-mailer - setup-mailer
block:
- when: not matrix_mailer_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -29,13 +29,13 @@
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known.yml"
tags:
- self-check - self-check
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known.yml"
- name: Mark matrix-nginx-proxy role as executed - name: Mark matrix-nginx-proxy role as executed
ansible.builtin.set_fact:
matrix_nginx_proxy_role_executed: true
tags: tags:
- always - always
ansible.builtin.set_fact:
matrix_nginx_proxy_role_executed: true

View File

@ -51,6 +51,7 @@
--agree-tos --agree-tos
--email={{ matrix_ssl_lets_encrypt_support_email }} --email={{ matrix_ssl_lets_encrypt_support_email }}
-d {{ domain_name }} -d {{ domain_name }}
changed_when: true
when: domain_name_needs_cert | bool when: domain_name_needs_cert | bool
register: result_certbot_direct register: result_certbot_direct
ignore_errors: true ignore_errors: true
@ -81,6 +82,7 @@
--agree-tos --agree-tos
--email={{ matrix_ssl_lets_encrypt_support_email }} --email={{ matrix_ssl_lets_encrypt_support_email }}
-d {{ domain_name }} -d {{ domain_name }}
changed_when: true
when: "domain_name_needs_cert and result_certbot_direct.failed" when: "domain_name_needs_cert and result_certbot_direct.failed"
register: result_certbot_proxy register: result_certbot_proxy
ignore_errors: true ignore_errors: true

View File

@ -28,7 +28,9 @@
# #
# We'll do it in a more manual way. # We'll do it in a more manual way.
- name: Generate SSL certificate - name: Generate SSL certificate
ansible.builtin.command: | when: "not matrix_ssl_certificate_cert_path_stat_result.stat.exists"
ansible.builtin.command:
cmd: |
openssl req -x509 \ openssl req -x509 \
-sha256 \ -sha256 \
-newkey rsa:4096 \ -newkey rsa:4096 \
@ -37,7 +39,8 @@
-keyout {{ matrix_ssl_certificate_cert_key_path }} \ -keyout {{ matrix_ssl_certificate_cert_key_path }} \
-out {{ matrix_ssl_certificate_cert_path }} \ -out {{ matrix_ssl_certificate_cert_path }} \
-days 3650 -days 3650
when: "not matrix_ssl_certificate_cert_path_stat_result.stat.exists" # Well, this creates 2 files, but Ansible can only check 1.
creates: "{{ matrix_ssl_certificate_cert_path }}"
- name: Adjust SSL certificate file ownership - name: Adjust SSL certificate file ownership
ansible.builtin.file: ansible.builtin.file:

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_prometheus_nginxlog_exporter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-prometheus-nginxlog-exporter - setup-prometheus-nginxlog-exporter
- install-all - install-all
- install-prometheus-nginxlog-exporter - install-prometheus-nginxlog-exporter
block:
- when: matrix_prometheus_nginxlog_exporter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-prometheus-nginxlog-exporter
- install-all
- install-prometheus-nginxlog-exporter
block:
- when: matrix_prometheus_nginxlog_exporter_enabled | bool - when: matrix_prometheus_nginxlog_exporter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_prometheus_nginxlog_exporter_enabled | bool - when: matrix_prometheus_nginxlog_exporter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-prometheus-nginxlog-exporter - setup-prometheus-nginxlog-exporter
- install-all block:
- install-prometheus-nginxlog-exporter
- block:
- when: not matrix_prometheus_nginxlog_exporter_enabled | bool - when: not matrix_prometheus_nginxlog_exporter_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-prometheus-nginxlog-exporter

View File

@ -1,28 +1,28 @@
--- ---
- name: Fail if matrix-nginx-proxy role executed before matrix-prometheus-services-proxy-connect - name: Fail if matrix-nginx-proxy role executed before matrix-prometheus-services-proxy-connect
when: matrix_nginx_proxy_role_executed | default(False) | bool
ansible.builtin.fail: ansible.builtin.fail:
msg: >- msg: >-
Trying to append node-exporter's reverse-proxying configuration to matrix-nginx-proxy, Trying to append node-exporter's reverse-proxying configuration to matrix-nginx-proxy,
but it's pointless since the matrix-nginx-proxy role had already executed. but it's pointless since the matrix-nginx-proxy role had already executed.
To fix this, please change the order of roles in your playbook, To fix this, please change the order of roles in your playbook,
so that the matrix-nginx-proxy role would run after the matrix-prometheus-services-proxy-connect role. so that the matrix-nginx-proxy role would run after the matrix-prometheus-services-proxy-connect role.
when: matrix_nginx_proxy_role_executed | default(False) | bool
- block: - tags:
- setup-all
- setup-nginx-proxy
- install-all
- install-nginx-proxy
block:
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled | bool - when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-node-exporter/inject_into_nginx_proxy.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-node-exporter/inject_into_nginx_proxy.yml"
tags:
- tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- block:
- when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled | bool - when: prometheus_node_exporter_enabled | bool and matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-postgres-exporter/inject_into_nginx_proxy.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/prometheus-postgres-exporter/inject_into_nginx_proxy.yml"
tags:
- setup-all
- setup-nginx-proxy
- install-all
- install-nginx-proxy

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-prometheus
- install-all
- install-prometheus
block:
- when: matrix_prometheus_enabled | bool - when: matrix_prometheus_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_prometheus_enabled | bool - when: matrix_prometheus_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-prometheus - setup-prometheus
- install-all block:
- install-prometheus
- block:
- when: not matrix_prometheus_enabled | bool - when: not matrix_prometheus_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-prometheus

View File

@ -62,6 +62,7 @@
--tag={{ matrix_rageshake_container_image }} --tag={{ matrix_rageshake_container_image }}
--file={{ matrix_rageshake_container_src_files_path }}/Dockerfile --file={{ matrix_rageshake_container_src_files_path }}/Dockerfile
{{ matrix_rageshake_container_src_files_path }} {{ matrix_rageshake_container_src_files_path }}
changed_when: true
when: matrix_rageshake_container_image_self_build | bool when: matrix_rageshake_container_image_self_build | bool
- name: Ensure rageshake container network is created - name: Ensure rageshake container network is created

View File

@ -1,19 +1,20 @@
--- ---
- block:
- tags:
- setup-all
- setup-rageshake
- install-all
- install-rageshake
block:
- when: matrix_rageshake_enabled | bool - when: matrix_rageshake_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_rageshake_enabled | bool - when: matrix_rageshake_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-rageshake - setup-rageshake
- install-all block:
- install-rageshake
- block:
- when: not matrix_rageshake_enabled | bool - when: not matrix_rageshake_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
tags:
- setup-all
- setup-rageshake

View File

@ -1,41 +1,41 @@
--- ---
- block: - tags:
- when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-matrix-registration
- install-all
- install-matrix-registration
block:
- when: matrix_registration_enabled | bool - when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_registration_enabled | bool - when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-matrix-registration - setup-matrix-registration
- install-all block:
- install-matrix-registration
- block:
- when: not matrix_registration_enabled | bool - when: not matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-matrix-registration
- block: - tags:
- generate-matrix-registration-token
block:
- when: matrix_registration_enabled | bool - when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/generate_token.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/generate_token.yml"
tags:
- generate-matrix-registration-token
- block: - tags:
- list-matrix-registration-tokens
block:
- when: matrix_registration_enabled | bool - when: matrix_registration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/list_tokens.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/list_tokens.yml"
tags:
- list-matrix-registration-tokens

View File

@ -56,6 +56,7 @@
--tag={{ matrix_sliding_sync_container_image }} --tag={{ matrix_sliding_sync_container_image }}
--file={{ matrix_sliding_sync_container_src_path }}/Dockerfile --file={{ matrix_sliding_sync_container_src_path }}/Dockerfile
{{ matrix_sliding_sync_container_src_path }} {{ matrix_sliding_sync_container_src_path }}
changed_when: true
- name: Ensure matrix-sliding-sync container network is created - name: Ensure matrix-sliding-sync container network is created
community.general.docker_network: community.general.docker_network:

View File

@ -1,19 +1,20 @@
--- ---
- block:
- tags:
- setup-all
- setup-sliding-sync
- install-all
- install-sliding-sync
block:
- when: matrix_sliding_sync_enabled | bool - when: matrix_sliding_sync_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_sliding_sync_enabled | bool - when: matrix_sliding_sync_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-sliding-sync - setup-sliding-sync
- install-all block:
- install-sliding-sync
- block:
- when: not matrix_sliding_sync_enabled | bool - when: not matrix_sliding_sync_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
tags:
- setup-all
- setup-sliding-sync

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- setup-all
- setup-sygnal
- install-all
- install-sygnal
block:
- when: matrix_sygnal_enabled | bool - when: matrix_sygnal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_sygnal_enabled | bool - when: matrix_sygnal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-sygnal - setup-sygnal
- install-all block:
- install-sygnal
- block:
- when: not matrix_sygnal_enabled | bool - when: not matrix_sygnal_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
tags:
- setup-all
- setup-sygnal

View File

@ -1,29 +1,29 @@
--- ---
- block: - tags:
- when: matrix_synapse_admin_enabled | bool and matrix_synapse_admin_nginx_proxy_integration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
tags:
- setup-all - setup-all
- setup-nginx-proxy - setup-nginx-proxy
- install-all - install-all
- install-nginx-proxy - install-nginx-proxy
block:
- when: matrix_synapse_admin_enabled | bool and matrix_synapse_admin_nginx_proxy_integration_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
- block: - tags:
- setup-all
- setup-synapse-admin
- install-all
- install-synapse-admin
block:
- when: matrix_synapse_admin_enabled | bool - when: matrix_synapse_admin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_synapse_admin_enabled | bool - when: matrix_synapse_admin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse-admin - setup-synapse-admin
- install-all block:
- install-synapse-admin
- block:
- when: not matrix_synapse_admin_enabled | bool - when: not matrix_synapse_admin_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse-admin

View File

@ -1,20 +1,20 @@
--- ---
- block: - tags:
- when: matrix_synapse_reverse_proxy_companion_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all - setup-all
- setup-synapse-reverse-proxy-companion - setup-synapse-reverse-proxy-companion
- setup-synapse - setup-synapse
- install-all - install-all
- install-synapse-reverse-proxy-companion - install-synapse-reverse-proxy-companion
- install-synapse - install-synapse
block:
- when: matrix_synapse_reverse_proxy_companion_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- block: - tags:
- when: not matrix_synapse_reverse_proxy_companion_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-synapse-reverse-proxy-companion - setup-synapse-reverse-proxy-companion
- setup-synapse - setup-synapse
block:
- when: not matrix_synapse_reverse_proxy_companion_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -1,60 +1,60 @@
--- ---
# encryption-disabler # encryption-disabler
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_encryption_disabler_enabled | bool - when: matrix_synapse_ext_encryption_disabler_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_install.yml"
tags:
- setup-all
- setup-synapse
# rest-auth # rest-auth
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_password_provider_rest_auth_enabled | bool - when: matrix_synapse_ext_password_provider_rest_auth_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_install.yml"
tags:
- setup-all
- setup-synapse
# shared-secret-auth # shared-secret-auth
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool - when: matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_install.yml"
tags:
- setup-all
- setup-synapse
# ldap-auth # ldap-auth
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_password_provider_ldap_enabled | bool - when: matrix_synapse_ext_password_provider_ldap_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/ldap-auth/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/ldap-auth/setup_install.yml"
tags:
- setup-all
- setup-synapse
# synapse-simple-antispam # synapse-simple-antispam
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool - when: matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_install.yml"
tags:
- setup-all
- setup-synapse
# mjolnir-antispam # mjolnir-antispam
- block: - tags:
- when: matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_install.yml"
tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- when: matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_install.yml"
# s3-storage-provider # s3-storage-provider
- block: - tags:
- setup-all
- setup-synapse
block:
- when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool - when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/validate_config.yml"
- when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool - when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_install.yml"
tags:
- setup-all
- setup-synapse

View File

@ -1,52 +1,52 @@
--- ---
# encryption-disabler # encryption-disabler
- block: - tags:
- setup-all
- setup-synapse
block:
- when: not matrix_synapse_ext_encryption_disabler_enabled | bool - when: not matrix_synapse_ext_encryption_disabler_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/encryption-disabler/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse
# rest-auth # rest-auth
- block: - tags:
- setup-all
- setup-synapse
block:
- when: not matrix_synapse_ext_password_provider_rest_auth_enabled | bool - when: not matrix_synapse_ext_password_provider_rest_auth_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/rest-auth/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse
# shared-secret-auth # shared-secret-auth
- block: - tags:
- when: not matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- when: not matrix_synapse_ext_password_provider_shared_secret_auth_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/shared-secret-auth/setup_uninstall.yml"
# ldap-auth has no uninstall tasks # ldap-auth has no uninstall tasks
# synapse-simple-antispam # synapse-simple-antispam
- block: - tags:
- setup-all
- setup-synapse
block:
- when: not matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool - when: not matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-simple-antispam/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse
# mjolnir-antispam # mjolnir-antispam
- block: - tags:
- setup-all
- setup-synapse
block:
- when: not matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool - when: not matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/mjolnir-antispam/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse
# s3-storage-provider # s3-storage-provider
- block: - tags:
- when: not matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- when: not matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_uninstall.yml"

View File

@ -1,9 +1,6 @@
--- ---
- block: - tags:
- when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/init.yml"
tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
- install-all - install-all
@ -19,55 +16,58 @@
- stop - stop
- stop-all - stop-all
- stop-group - stop-group
block:
- when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/init.yml"
- block: - tags:
- setup-all
- setup-synapse
- install-all
- install-synapse
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
- install-all block:
- install-synapse
- block:
- when: not matrix_synapse_enabled | bool - when: not matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse
- block: - tags:
- import-synapse-media-store
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_media_store.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/import_media_store.yml"
tags:
- import-synapse-media-store
- block: - tags:
- register-user
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/register_user.yml"
tags:
- register-user
- block: - tags:
- update-user-password
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/update_user_password.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/update_user_password.yml"
tags:
- update-user-password
- block: - tags:
- rust-synapse-compress-state
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/rust-synapse-compress-state/main.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/rust-synapse-compress-state/main.yml"
tags:
- rust-synapse-compress-state
- block: - tags:
- self-check
block:
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_client_api.yml"
- when: matrix_synapse_enabled | bool - when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_federation_api.yml"
tags:
- self-check

View File

@ -23,33 +23,33 @@
# trying to chown/chmod it here will cause trouble. # trying to chown/chmod it here will cause trouble.
when: item.when | bool when: item.when | bool
- block: - tags:
- setup-all
- setup-synapse
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_install.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_install.yml"
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- block:
- when: matrix_synapse_workers_enabled | bool - when: matrix_synapse_workers_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_install.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_install.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- block:
- when: matrix_s3_media_store_enabled | bool - when: matrix_s3_media_store_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_install.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_install.yml"
- when: not matrix_s3_media_store_enabled | bool - when: not matrix_s3_media_store_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse

View File

@ -1,27 +1,27 @@
--- ---
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml"
- block: - tags:
- setup-all
- setup-synapse
block:
- when: not matrix_synapse_workers_enabled | bool - when: not matrix_synapse_workers_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_uninstall.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_uninstall.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_uninstall.yml"
tags:
- tags:
- setup-all - setup-all
- setup-synapse - setup-synapse
block:
- block:
- when: not matrix_s3_media_store_enabled | bool - when: not matrix_s3_media_store_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_uninstall.yml" ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse

View File

@ -48,6 +48,7 @@
. .
environment: environment:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
changed_when: true
when: "matrix_synapse_git_pull_results.changed | bool or matrix_synapse_docker_image_check_result.stdout == ''" when: "matrix_synapse_git_pull_results.changed | bool or matrix_synapse_docker_image_check_result.stdout == ''"
- name: Ensure Synapse Docker image is pulled - name: Ensure Synapse Docker image is pulled
@ -82,11 +83,6 @@
path: "{{ matrix_synapse_customized_docker_src_files_path }}" path: "{{ matrix_synapse_customized_docker_src_files_path }}"
nocache: "{{ matrix_synapse_docker_image_customized_build_nocache }}" nocache: "{{ matrix_synapse_docker_image_customized_build_nocache }}"
- name: Check if a Synapse signing key exists
ansible.builtin.stat:
path: "{{ matrix_synapse_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.key"
register: matrix_synapse_signing_key_stat
# We do this so that the signing key would get generated. # We do this so that the signing key would get generated.
# #
# This will also generate a default homeserver.yaml configuration file and a log configuration file. # This will also generate a default homeserver.yaml configuration file and a log configuration file.
@ -95,7 +91,8 @@
# We don't use the `docker_container` module, because using it with `cap_drop` requires # We don't use the `docker_container` module, because using it with `cap_drop` requires
# a very recent docker-py version, which is not available for a lot of people yet. # a very recent docker-py version, which is not available for a lot of people yet.
- name: Generate initial Synapse config and signing key - name: Generate initial Synapse config and signing key
ansible.builtin.command: | ansible.builtin.command:
cmd: |
docker run docker run
--rm --rm
--name=matrix-config --name=matrix-config
@ -107,7 +104,7 @@
-e SYNAPSE_REPORT_STATS=no -e SYNAPSE_REPORT_STATS=no
{{ matrix_synapse_docker_image }} {{ matrix_synapse_docker_image }}
generate generate
when: "not matrix_synapse_signing_key_stat.stat.exists" creates: "{{ matrix_synapse_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.key"
- name: Ensure Synapse homeserver config installed - name: Ensure Synapse homeserver config installed
ansible.builtin.copy: ansible.builtin.copy:

View File

@ -1,10 +1,10 @@
--- ---
- block: - tags:
- when: matrix_user_creator_users | length > 0
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
tags:
# This role intentionally doesn't do work on a `setup-all` tag. # This role intentionally doesn't do work on a `setup-all` tag.
# If it did, the initial installation (`--tags=setup-all`) would also potentially polute the database with data, # If it did, the initial installation (`--tags=setup-all`) would also potentially polute the database with data,
# which would make importing a database dump problematic. # which would make importing a database dump problematic.
- ensure-matrix-users-created - ensure-matrix-users-created
block:
- when: matrix_user_creator_users | length > 0
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"

View File

@ -1,19 +1,19 @@
--- ---
- block: - tags:
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:
- setup-all - setup-all
- setup-user-verification-service - setup-user-verification-service
- install-all - install-all
- install-user-verification-service - install-user-verification-service
block:
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- block: - tags:
- when: run_setup | bool and not matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all - setup-all
- setup-user-verification-service - setup-user-verification-service
block:
- when: run_setup | bool and not matrix_user_verification_service_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

View File

@ -1,22 +1,22 @@
--- ---
- block: - tags:
- setup-all
- install-all
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
tags:
- setup-all
- install-all
- block: - tags:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
tags:
- setup-all - setup-all
- install-all - install-all
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
- when: devture_traefik_enabled | bool - when: devture_traefik_enabled | bool
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/devture_traefik_to_matrix_traefik.yml"
tags: tags:
- setup-all - setup-all
- install-all - install-all
- setup-traefik - setup-traefik
- install-traefik - install-traefik
block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/devture_traefik_to_matrix_traefik.yml"