More ansible-lint fixes

This commit is contained in:
Slavi Pantaleev 2022-07-18 11:22:05 +03:00
parent 34cdaade08
commit ddf18eadc7
337 changed files with 1720 additions and 1720 deletions

View file

@ -1,6 +1,6 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/setup.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
when: run_stop | bool when: run_stop | bool
tags: tags:
- setup-all - setup-all

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_backup_borg_enabled | bool" when: "run_setup | bool and matrix_backup_borg_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-backup-borg - setup-backup-borg
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_backup_borg_enabled | bool" when: "run_setup | bool and matrix_backup_borg_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-backup-borg - setup-backup-borg
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_backup_borg_enabled | bool" when: "run_setup | bool and not matrix_backup_borg_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,6 +1,6 @@
--- ---
- block: - block:
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/detect_existing_postgres_version.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/detect_existing_postgres_version.yml"
- name: Fail if detected Postgres version is unsupported - name: Fail if detected Postgres version is unsupported
ansible.builtin.fail: ansible.builtin.fail:

View file

@ -1,6 +1,6 @@
--- ---
- name: Check existence of matrix-backup-borg service - name: Check existence of matrix-backup-borg service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-backup-borg.service" path: "{{ matrix_systemd_path }}/matrix-backup-borg.service"
register: matrix_backup_borg_service_stat register: matrix_backup_borg_service_stat

View file

@ -1,33 +1,33 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/sanity_check.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/sanity_check.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/clean_up_old_files.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/clean_up_old_files.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
- import_tasks: "{{ role_path }}/tasks/server_base/setup.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/server_base/setup.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
# 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.
- import_tasks: "{{ role_path }}/tasks/setup_matrix_user.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_matrix_user.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- always - always
- setup-system-user - setup-system-user
- import_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
- import_tasks: "{{ role_path }}/tasks/setup_well_known.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_well_known.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all

View file

@ -1,12 +1,12 @@
--- ---
- include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat.yml"
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int < 8 when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int < 8
- include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat8.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat8.yml"
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int > 7 and ansible_distribution_major_version|int < 30 when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int > 7 and ansible_distribution_major_version|int < 30
- include_tasks: "{{ role_path }}/tasks/server_base/setup_fedora.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_fedora.yml"
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int > 30 when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int > 30
- block: - block:
@ -23,14 +23,14 @@
setup: filter=ansible_lsb* setup: filter=ansible_lsb*
when: lsb_release_installation_result.changed when: lsb_release_installation_result.changed
- include_tasks: "{{ role_path }}/tasks/server_base/setup_debian.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_debian.yml"
when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian') when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian')
- include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml"
when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian') when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian')
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml"
when: ansible_distribution == 'Archlinux' when: ansible_distribution == 'Archlinux'
- name: Ensure Docker is started and autoruns - name: Ensure Docker is started and autoruns

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_buscarron_enabled | bool" when: "run_setup | bool and matrix_bot_buscarron_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-buscarron - setup-bot-buscarron
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_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
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_buscarron_enabled | bool" when: "run_setup | bool and not matrix_bot_buscarron_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -4,7 +4,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_bot_buscarron_sqlite_database_path_local }}" path: "{{ matrix_bot_buscarron_sqlite_database_path_local }}"
register: matrix_bot_buscarron_sqlite_database_path_local_stat_result register: matrix_bot_buscarron_sqlite_database_path_local_stat_result
@ -18,7 +18,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-bot-buscarron.service'] systemd_services_to_stop: ['matrix-bot-buscarron.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_bot_buscarron_requires_restart: true matrix_bot_buscarron_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-buscarron service - name: Check existence of matrix-buscarron service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-buscarron.service" path: "{{ matrix_systemd_path }}/matrix-bot-buscarron.service"
register: matrix_bot_buscarron_service_stat register: matrix_bot_buscarron_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool" when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-go-neb - setup-bot-go-neb
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_bot_go_neb_enabled | bool" when: "run_setup | bool and matrix_bot_go_neb_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-go-neb - setup-bot-go-neb
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_go_neb_enabled | bool" when: "run_setup | bool and not matrix_bot_go_neb_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-go-neb service - name: Check existence of matrix-go-neb service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-go-neb.service" path: "{{ matrix_systemd_path }}/matrix-bot-go-neb.service"
register: matrix_bot_go_neb_service_stat register: matrix_bot_go_neb_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_honoroit_enabled | bool" when: "run_setup | bool and matrix_bot_honoroit_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-honoroit - setup-bot-honoroit
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_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
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_honoroit_enabled | bool" when: "run_setup | bool and not matrix_bot_honoroit_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -4,7 +4,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_bot_honoroit_sqlite_database_path_local }}" path: "{{ matrix_bot_honoroit_sqlite_database_path_local }}"
register: matrix_bot_honoroit_sqlite_database_path_local_stat_result register: matrix_bot_honoroit_sqlite_database_path_local_stat_result
@ -18,7 +18,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-bot-honoroit.service'] systemd_services_to_stop: ['matrix-bot-honoroit.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_bot_honoroit_requires_restart: true matrix_bot_honoroit_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-honoroit service - name: Check existence of matrix-honoroit service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-honoroit.service" path: "{{ matrix_systemd_path }}/matrix-bot-honoroit.service"
register: matrix_bot_honoroit_service_stat register: matrix_bot_honoroit_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool" when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-matrix-registration-bot - setup-bot-matrix-registration-bot
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool" when: "run_setup | bool and matrix_bot_matrix_registration_bot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-matrix-registration-bot - setup-bot-matrix-registration-bot
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_matrix_registration_bot_enabled | bool" when: "run_setup | bool and not matrix_bot_matrix_registration_bot_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-matrix-registration-bot service - name: Check existence of matrix-matrix-registration-bot service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-matrix-registration-bot.service" path: "{{ matrix_systemd_path }}/matrix-bot-matrix-registration-bot.service"
register: matrix_bot_matrix_registration_bot_service_stat register: matrix_bot_matrix_registration_bot_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool" when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-matrix-reminder-bot - setup-bot-matrix-reminder-bot
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool" when: "run_setup | bool and matrix_bot_matrix_reminder_bot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-matrix-reminder-bot - setup-bot-matrix-reminder-bot
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_matrix_reminder_bot_enabled | bool" when: "run_setup | bool and not matrix_bot_matrix_reminder_bot_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -5,7 +5,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_bot_matrix_reminder_bot_sqlite_database_path_local }}" path: "{{ matrix_bot_matrix_reminder_bot_sqlite_database_path_local }}"
register: matrix_bot_matrix_reminder_bot_sqlite_database_path_local_stat_result register: matrix_bot_matrix_reminder_bot_sqlite_database_path_local_stat_result
@ -19,7 +19,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-bot-matrix-reminder-bot.service'] systemd_services_to_stop: ['matrix-bot-matrix-reminder-bot.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_bot_matrix_reminder_bot_requires_restart: true matrix_bot_matrix_reminder_bot_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-matrix-reminder-bot service - name: Check existence of matrix-matrix-reminder-bot service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-matrix-reminder-bot.service" path: "{{ matrix_systemd_path }}/matrix-bot-matrix-reminder-bot.service"
register: matrix_bot_matrix_reminder_bot_service_stat register: matrix_bot_matrix_reminder_bot_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool" when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-mjolnir - setup-bot-mjolnir
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool" when: "run_setup | bool and matrix_bot_mjolnir_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-bot-mjolnir - setup-bot-mjolnir
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_bot_mjolnir_enabled | bool" when: "run_setup | bool and not matrix_bot_mjolnir_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-bot-mjolnir service - name: Check existence of matrix-bot-mjolnir service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-bot-mjolnir.service" path: "{{ matrix_systemd_path }}/matrix-bot-mjolnir.service"
register: matrix_bot_mjolnir_service_stat register: matrix_bot_mjolnir_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_appservice_discord_enabled | bool" when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-discord - setup-appservice-discord
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_appservice_discord_enabled | bool" when: "run_setup | bool and matrix_appservice_discord_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-discord - setup-appservice-discord
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_appservice_discord_enabled | bool" when: "run_setup | bool and not matrix_appservice_discord_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -5,7 +5,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_discord_sqlite_database_path_local }}" path: "{{ matrix_appservice_discord_sqlite_database_path_local }}"
register: matrix_appservice_discord_sqlite_database_path_local_stat_result register: matrix_appservice_discord_sqlite_database_path_local_stat_result
@ -19,7 +19,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-appservice-discord.service'] systemd_services_to_stop: ['matrix-appservice-discord.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_appservice_discord_requires_restart: true matrix_appservice_discord_requires_restart: true
@ -50,7 +50,7 @@
- "{{ matrix_appservice_discord_data_path }}" - "{{ matrix_appservice_discord_data_path }}"
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_discord_base_path }}/discord.db" path: "{{ matrix_appservice_discord_base_path }}/discord.db"
register: matrix_appservice_discord_stat_db register: matrix_appservice_discord_stat_db

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-appservice-discord service - name: Check existence of matrix-appservice-discord service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-appservice-discord.service" path: "{{ matrix_systemd_path }}/matrix-appservice-discord.service"
register: matrix_appservice_discord_service_stat register: matrix_appservice_discord_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_appservice_irc_enabled | bool" when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-irc - setup-appservice-irc
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_appservice_irc_enabled | bool" when: "run_setup | bool and matrix_appservice_irc_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-irc - setup-appservice-irc
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_appservice_irc_enabled | bool" when: "run_setup | bool and not matrix_appservice_irc_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -22,14 +22,14 @@
register: matrix_postgres_service_start_result register: matrix_postgres_service_start_result
- name: Wait a bit, so that Postgres can start - name: Wait a bit, so that Postgres can start
wait_for: ansible.builtin.wait_for:
timeout: "{{ postgres_start_wait_time }}" timeout: "{{ postgres_start_wait_time }}"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
when: "matrix_postgres_service_start_result.changed | bool" when: "matrix_postgres_service_start_result.changed | bool"
- name: Check existence of matrix-appservice-irc service - name: Check existence of matrix-appservice-irc service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-appservice-irc.service" path: "{{ matrix_systemd_path }}/matrix-appservice-irc.service"
register: matrix_appservice_irc_service_stat register: matrix_appservice_irc_service_stat

View file

@ -1,6 +1,6 @@
--- ---
- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml"
- name: Ensure Appservice IRC paths exist - name: Ensure Appservice IRC paths exist
ansible.builtin.file: ansible.builtin.file:
@ -17,7 +17,7 @@
when: item.when | bool when: item.when | bool
- name: Check if an old passkey file already exists - name: Check if an old passkey file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_irc_base_path }}/passkey.pem" path: "{{ matrix_appservice_irc_base_path }}/passkey.pem"
register: matrix_appservice_irc_stat_passkey register: matrix_appservice_irc_stat_passkey
@ -45,12 +45,12 @@
- block: - block:
- name: Check if a nedb database already exists - name: Check if a nedb database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_irc_data_path }}/users.db" path: "{{ matrix_appservice_irc_data_path }}/users.db"
register: matrix_appservice_irc_nedb_database_path_local_stat_result register: matrix_appservice_irc_nedb_database_path_local_stat_result
- block: - block:
- import_tasks: "{{ role_path }}/tasks/migrate_nedb_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/migrate_nedb_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_appservice_irc_requires_restart: true matrix_appservice_irc_requires_restart: true
@ -100,7 +100,7 @@
group: "{{ matrix_user_groupname }}" group: "{{ matrix_user_groupname }}"
- name: Check if Appservice IRC passkey exists - name: Check if Appservice IRC passkey exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_irc_data_path }}/passkey.pem" path: "{{ matrix_appservice_irc_data_path }}/passkey.pem"
register: irc_passkey_file register: irc_passkey_file

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-appservice-irc service - name: Check existence of matrix-appservice-irc service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-appservice-irc.service" path: "{{ matrix_systemd_path }}/matrix-appservice-irc.service"
register: matrix_appservice_irc_service_stat register: matrix_appservice_irc_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_appservice_slack_enabled | bool" when: "run_setup | bool and matrix_appservice_slack_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-slack - setup-appservice-slack
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_appservice_slack_enabled | bool" when: "run_setup | bool and matrix_appservice_slack_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-slack - setup-appservice-slack
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_appservice_slack_enabled | bool" when: "run_setup | bool and not matrix_appservice_slack_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -22,7 +22,7 @@
register: matrix_postgres_service_start_result register: matrix_postgres_service_start_result
- name: Wait a bit, so that Postgres can start - name: Wait a bit, so that Postgres can start
wait_for: ansible.builtin.wait_for:
timeout: "{{ postgres_start_wait_time }}" timeout: "{{ postgres_start_wait_time }}"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false

View file

@ -19,12 +19,12 @@
- block: - block:
- name: Check if a nedb database already exists - name: Check if a nedb database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_appservice_slack_data_path }}/teams.db" path: "{{ matrix_appservice_slack_data_path }}/teams.db"
register: matrix_appservice_slack_nedb_database_path_local_stat_result register: matrix_appservice_slack_nedb_database_path_local_stat_result
- block: - block:
- import_tasks: "{{ role_path }}/tasks/migrate_nedb_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/migrate_nedb_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_appservice_slack_requires_restart: true matrix_appservice_slack_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-appservice-slack service - name: Check existence of matrix-appservice-slack service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-appservice-slack.service" path: "{{ matrix_systemd_path }}/matrix-appservice-slack.service"
register: matrix_appservice_slack_service_stat register: matrix_appservice_slack_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool" when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-webhooks - setup-appservice-webhooks
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool" when: "run_setup | bool and matrix_appservice_webhooks_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-appservice-webhooks - setup-appservice-webhooks
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_appservice_webhooks_enabled | bool" when: "run_setup | bool and not matrix_appservice_webhooks_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-appservice-webhooks service - name: Check existence of matrix-appservice-webhooks service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-appservice-webhooks.service" path: "{{ matrix_systemd_path }}/matrix-appservice-webhooks.service"
register: matrix_appservice_webhooks_service_stat register: matrix_appservice_webhooks_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_beeper_linkedin_enabled | bool" when: "run_setup | bool and matrix_beeper_linkedin_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-beeper-linkedin - setup-beeper-linkedin
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup and matrix_beeper_linkedin_enabled" when: "run_setup and matrix_beeper_linkedin_enabled"
tags: tags:
- setup-all - setup-all
- setup-beeper-linkedin - setup-beeper-linkedin
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup and not matrix_beeper_linkedin_enabled" when: "run_setup and not matrix_beeper_linkedin_enabled"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-beeper-linkedin service - name: Check existence of matrix-beeper-linkedin service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-beeper-linkedin.service" path: "{{ matrix_systemd_path }}/matrix-beeper-linkedin.service"
register: matrix_beeper_linkedin_service_stat register: matrix_beeper_linkedin_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool" when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-go-skype-bridge - setup-go-skype-bridge
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool" when: "run_setup | bool and matrix_go_skype_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-go-skype-bridge - setup-go-skype-bridge
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_go_skype_bridge_enabled | bool" when: "run_setup | bool and not matrix_go_skype_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_go_skype_bridge_sqlite_database_path_local }}" path: "{{ matrix_go_skype_bridge_sqlite_database_path_local }}"
register: matrix_go_skype_bridge_sqlite_database_path_local_stat_result register: matrix_go_skype_bridge_sqlite_database_path_local_stat_result
@ -28,7 +28,7 @@
systemd_services_to_stop: ['matrix-go-skype-bridge.service'] systemd_services_to_stop: ['matrix-go-skype-bridge.service']
pgloader_options: ['--with "quote identifiers"'] pgloader_options: ['--with "quote identifiers"']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_go_skype_bridge_requires_restart: true matrix_go_skype_bridge_requires_restart: true
@ -86,12 +86,12 @@
when: "matrix_go_skype_bridge_container_image_self_build | bool" when: "matrix_go_skype_bridge_container_image_self_build | bool"
- name: Check if an old database file exists - name: Check if an old database file exists
stat: ansible.builtin.stat:
path: "{{ matrix_go_skype_bridge_base_path }}/go-skype-bridge.db" path: "{{ matrix_go_skype_bridge_base_path }}/go-skype-bridge.db"
register: matrix_go_skype_bridge_stat_database register: matrix_go_skype_bridge_stat_database
- name: Check if an old matrix state file exists - name: Check if an old matrix state file exists
stat: ansible.builtin.stat:
path: "{{ matrix_go_skype_bridge_base_path }}/mx-state.json" path: "{{ matrix_go_skype_bridge_base_path }}/mx-state.json"
register: matrix_go_skype_bridge_stat_mx_state register: matrix_go_skype_bridge_stat_mx_state

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-go-skype-bridge service - name: Check existence of matrix-go-skype-bridge service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-go-skype-bridge.service" path: "/etc/systemd/system/matrix-go-skype-bridge.service"
register: matrix_go_skype_bridge_service_stat register: matrix_go_skype_bridge_service_stat

View file

@ -1,16 +1,16 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_heisenbridge_enabled | bool" when: "run_setup | bool and matrix_heisenbridge_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-heisenbridge - setup-heisenbridge
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_heisenbridge_enabled | bool" when: "run_setup | bool and not matrix_heisenbridge_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-heisenbridge service - name: Check existence of matrix-heisenbridge service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service" path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service"
register: matrix_heisenbridge_service_stat register: matrix_heisenbridge_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_hookshot_enabled | bool" when: "run_setup | bool and matrix_hookshot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-hookshot - setup-hookshot
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_hookshot_enabled | bool" when: "run_setup | bool and matrix_hookshot_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-hookshot - setup-hookshot
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_hookshot_enabled | bool" when: "run_setup | bool and not matrix_hookshot_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,6 +1,6 @@
--- ---
- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml"
- name: Ensure hookshot paths exist - name: Ensure hookshot paths exist
ansible.builtin.file: ansible.builtin.file:
@ -50,7 +50,7 @@
when: "matrix_hookshot_container_image_self_build | bool" when: "matrix_hookshot_container_image_self_build | bool"
- name: Check if hookshot passkey exists - name: Check if hookshot passkey exists
stat: ansible.builtin.stat:
path: "{{ matrix_hookshot_base_path }}/passkey.pem" path: "{{ matrix_hookshot_base_path }}/passkey.pem"
register: hookshot_passkey_file register: hookshot_passkey_file

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-hookshot service - name: Check existence of matrix-hookshot service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-hookshot.service" path: "{{ matrix_systemd_path }}/matrix-hookshot.service"
register: matrix_hookshot_service_stat register: matrix_hookshot_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool" when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-facebook - setup-mautrix-facebook
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool" when: "run_setup | bool and matrix_mautrix_facebook_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-facebook - setup-mautrix-facebook
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_facebook_enabled | bool" when: "run_setup | bool and not matrix_mautrix_facebook_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_facebook_sqlite_database_path_local }}" path: "{{ matrix_mautrix_facebook_sqlite_database_path_local }}"
register: matrix_mautrix_facebook_sqlite_database_path_local_stat_result register: matrix_mautrix_facebook_sqlite_database_path_local_stat_result
@ -27,7 +27,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mautrix-facebook.service'] systemd_services_to_stop: ['matrix-mautrix-facebook.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mautrix_facebook_requires_restart: true matrix_mautrix_facebook_requires_restart: true
@ -84,7 +84,7 @@
when: "matrix_mautrix_facebook_container_image_self_build | bool" when: "matrix_mautrix_facebook_container_image_self_build | bool"
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db" path: "{{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db"
register: matrix_mautrix_facebook_stat_database register: matrix_mautrix_facebook_stat_database

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-facebook service - name: Check existence of matrix-mautrix-facebook service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-facebook.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-facebook.service"
register: matrix_mautrix_facebook_service_stat register: matrix_mautrix_facebook_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool" when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-googlechat - setup-mautrix-googlechat
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool" when: "run_setup | bool and matrix_mautrix_googlechat_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-googlechat - setup-mautrix-googlechat
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_googlechat_enabled | bool" when: "run_setup | bool and not matrix_mautrix_googlechat_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_googlechat_sqlite_database_path_local }}" path: "{{ matrix_mautrix_googlechat_sqlite_database_path_local }}"
register: matrix_mautrix_googlechat_sqlite_database_path_local_stat_result register: matrix_mautrix_googlechat_sqlite_database_path_local_stat_result
@ -27,7 +27,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mautrix-googlechat.service'] systemd_services_to_stop: ['matrix-mautrix-googlechat.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mautrix_googlechat_requires_restart: true matrix_mautrix_googlechat_requires_restart: true
@ -83,7 +83,7 @@
when: "matrix_mautrix_googlechat_container_image_self_build | bool" when: "matrix_mautrix_googlechat_container_image_self_build | bool"
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_googlechat_base_path }}/mautrix-googlechat.db" path: "{{ matrix_mautrix_googlechat_base_path }}/mautrix-googlechat.db"
register: matrix_mautrix_googlechat_stat_database register: matrix_mautrix_googlechat_stat_database

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-googlechat service - name: Check existence of matrix-mautrix-googlechat service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-googlechat.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-googlechat.service"
register: matrix_mautrix_googlechat_service_stat register: matrix_mautrix_googlechat_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool" when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-hangouts - setup-mautrix-hangouts
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool" when: "run_setup | bool and matrix_mautrix_hangouts_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-hangouts - setup-mautrix-hangouts
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_hangouts_enabled | bool" when: "run_setup | bool and not matrix_mautrix_hangouts_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_hangouts_sqlite_database_path_local }}" path: "{{ matrix_mautrix_hangouts_sqlite_database_path_local }}"
register: matrix_mautrix_hangouts_sqlite_database_path_local_stat_result register: matrix_mautrix_hangouts_sqlite_database_path_local_stat_result
@ -27,7 +27,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mautrix-hangouts.service'] systemd_services_to_stop: ['matrix-mautrix-hangouts.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mautrix_hangouts_requires_restart: true matrix_mautrix_hangouts_requires_restart: true
@ -83,7 +83,7 @@
when: "matrix_mautrix_hangouts_container_image_self_build | bool" when: "matrix_mautrix_hangouts_container_image_self_build | bool"
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_hangouts_base_path }}/mautrix-hangouts.db" path: "{{ matrix_mautrix_hangouts_base_path }}/mautrix-hangouts.db"
register: matrix_mautrix_hangouts_stat_database register: matrix_mautrix_hangouts_stat_database

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-hangouts service - name: Check existence of matrix-mautrix-hangouts service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-hangouts.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-hangouts.service"
register: matrix_mautrix_hangouts_service_stat register: matrix_mautrix_hangouts_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool" when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-instagram - setup-mautrix-instagram
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool" when: "run_setup | bool and matrix_mautrix_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-instagram - setup-mautrix-instagram
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_instagram_enabled | bool" when: "run_setup | bool and not matrix_mautrix_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,6 +1,6 @@
--- ---
- name: Check existence of matrix-mautrix-instagram service - name: Check existence of matrix-mautrix-instagram service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-instagram.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-instagram.service"
register: matrix_mautrix_instagram_service_stat register: matrix_mautrix_instagram_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool" when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-signal - setup-mautrix-signal
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_signal_enabled | bool" when: "run_setup | bool and matrix_mautrix_signal_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-signal - setup-mautrix-signal
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_signal_enabled | bool" when: "run_setup | bool and not matrix_mautrix_signal_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -2,7 +2,7 @@
# Signal daemon service # Signal daemon service
- name: Check existence of matrix-mautrix-signal-daemon service - name: Check existence of matrix-mautrix-signal-daemon service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-signal-daemon.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-signal-daemon.service"
register: matrix_mautrix_signal_daemon_service_stat register: matrix_mautrix_signal_daemon_service_stat
@ -22,7 +22,7 @@
# Bridge service # Bridge service
- name: Check existence of matrix-mautrix-signal service - name: Check existence of matrix-mautrix-signal service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-signal.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-signal.service"
register: matrix_mautrix_signal_service_stat register: matrix_mautrix_signal_service_stat

View file

@ -1,21 +1,21 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool" when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-telegram - setup-mautrix-telegram
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool" when: "run_setup | bool and matrix_mautrix_telegram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-telegram - setup-mautrix-telegram
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_telegram_enabled | bool" when: "run_setup | bool and not matrix_mautrix_telegram_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_telegram_sqlite_database_path_local }}" path: "{{ matrix_mautrix_telegram_sqlite_database_path_local }}"
register: matrix_mautrix_telegram_sqlite_database_path_local_stat_result register: matrix_mautrix_telegram_sqlite_database_path_local_stat_result
@ -27,7 +27,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mautrix-telegram.service'] systemd_services_to_stop: ['matrix-mautrix-telegram.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mautrix_telegram_requires_restart: true matrix_mautrix_telegram_requires_restart: true
@ -107,7 +107,7 @@
when: "matrix_mautrix_telegram_container_image_self_build | bool and matrix_mautrix_telegram_git_pull_results.changed" when: "matrix_mautrix_telegram_container_image_self_build | bool and matrix_mautrix_telegram_git_pull_results.changed"
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db" path: "{{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db"
register: matrix_mautrix_telegram_stat_database register: matrix_mautrix_telegram_stat_database

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-telegram service - name: Check existence of matrix-mautrix-telegram service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-telegram.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-telegram.service"
register: matrix_mautrix_telegram_service_stat register: matrix_mautrix_telegram_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool" when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-twitter - setup-mautrix-twitter
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool" when: "run_setup | bool and matrix_mautrix_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-twitter - setup-mautrix-twitter
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mautrix_twitter_enabled | bool" when: "run_setup | bool and not matrix_mautrix_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-twitter service - name: Check existence of matrix-mautrix-twitter service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-twitter.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-twitter.service"
register: matrix_mautrix_twitter_service_stat register: matrix_mautrix_twitter_service_stat

View file

@ -1,21 +1,21 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mautrix_whatsapp_enabled | bool" when: "run_setup | bool and matrix_mautrix_whatsapp_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mautrix-whatsapp - setup-mautrix-whatsapp
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup and matrix_mautrix_whatsapp_enabled" when: "run_setup and matrix_mautrix_whatsapp_enabled"
tags: tags:
- setup-all - setup-all
- setup-mautrix-whatsapp - setup-mautrix-whatsapp
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup and not matrix_mautrix_whatsapp_enabled" when: "run_setup and not matrix_mautrix_whatsapp_enabled"
tags: tags:
- setup-all - setup-all

View file

@ -13,7 +13,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_whatsapp_sqlite_database_path_local }}" path: "{{ matrix_mautrix_whatsapp_sqlite_database_path_local }}"
register: matrix_mautrix_whatsapp_sqlite_database_path_local_stat_result register: matrix_mautrix_whatsapp_sqlite_database_path_local_stat_result
@ -28,7 +28,7 @@
systemd_services_to_stop: ['matrix-mautrix-whatsapp.service'] systemd_services_to_stop: ['matrix-mautrix-whatsapp.service']
pgloader_options: ['--with "quote identifiers"'] pgloader_options: ['--with "quote identifiers"']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mautrix_whatsapp_requires_restart: true matrix_mautrix_whatsapp_requires_restart: true
@ -86,12 +86,12 @@
when: "matrix_mautrix_whatsapp_container_image_self_build | bool" when: "matrix_mautrix_whatsapp_container_image_self_build | bool"
- name: Check if an old database file exists - name: Check if an old database file exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_whatsapp_base_path }}/mautrix-whatsapp.db" path: "{{ matrix_mautrix_whatsapp_base_path }}/mautrix-whatsapp.db"
register: matrix_mautrix_whatsapp_stat_database register: matrix_mautrix_whatsapp_stat_database
- name: Check if an old matrix state file exists - name: Check if an old matrix state file exists
stat: ansible.builtin.stat:
path: "{{ matrix_mautrix_whatsapp_base_path }}/mx-state.json" path: "{{ matrix_mautrix_whatsapp_base_path }}/mx-state.json"
register: matrix_mautrix_whatsapp_stat_mx_state register: matrix_mautrix_whatsapp_stat_mx_state

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mautrix-whatsapp service - name: Check existence of matrix-mautrix-whatsapp service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-mautrix-whatsapp.service" path: "{{ matrix_systemd_path }}/matrix-mautrix-whatsapp.service"
register: matrix_mautrix_whatsapp_service_stat register: matrix_mautrix_whatsapp_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-discord - setup-mx-puppet-discord
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_discord_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-discord - setup-mx-puppet-discord
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_discord_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_discord_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -23,7 +23,7 @@
when: matrix_mx_puppet_discord_enabled | bool and item.when | bool when: matrix_mx_puppet_discord_enabled | bool and item.when | bool
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_discord_base_path }}/database.db" path: "{{ matrix_mx_puppet_discord_base_path }}/database.db"
register: matrix_mx_puppet_discord_stat_database register: matrix_mx_puppet_discord_stat_database
@ -44,7 +44,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_discord_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_discord_sqlite_database_path_local }}"
register: matrix_mx_puppet_discord_sqlite_database_path_local_stat_result register: matrix_mx_puppet_discord_sqlite_database_path_local_stat_result
@ -58,7 +58,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-discord.service'] systemd_services_to_stop: ['matrix-mx-puppet-discord.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_discord_requires_restart: true matrix_mx_puppet_discord_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-discord service - name: Check existence of matrix-mx-puppet-discord service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-discord.service" path: "/etc/systemd/system/matrix-mx-puppet-discord.service"
register: matrix_mx_puppet_discord_service_stat register: matrix_mx_puppet_discord_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-groupme - setup-mx-puppet-groupme
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_groupme_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-groupme - setup-mx-puppet-groupme
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_groupme_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_groupme_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -23,7 +23,7 @@
when: matrix_mx_puppet_groupme_enabled | bool and item.when | bool when: matrix_mx_puppet_groupme_enabled | bool and item.when | bool
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_groupme_base_path }}/database.db" path: "{{ matrix_mx_puppet_groupme_base_path }}/database.db"
register: matrix_mx_puppet_groupme_stat_database register: matrix_mx_puppet_groupme_stat_database
@ -45,7 +45,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_groupme_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_groupme_sqlite_database_path_local }}"
register: matrix_mx_puppet_groupme_sqlite_database_path_local_stat_result register: matrix_mx_puppet_groupme_sqlite_database_path_local_stat_result
@ -59,7 +59,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-groupme.service'] systemd_services_to_stop: ['matrix-mx-puppet-groupme.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_groupme_requires_restart: true matrix_mx_puppet_groupme_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-groupme service - name: Check existence of matrix-mx-puppet-groupme service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-groupme.service" path: "/etc/systemd/system/matrix-mx-puppet-groupme.service"
register: matrix_mx_puppet_groupme_service_stat register: matrix_mx_puppet_groupme_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-instagram - setup-mx-puppet-instagram
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-instagram - setup-mx-puppet-instagram
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_instagram_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_instagram_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -14,7 +14,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_instagram_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_instagram_sqlite_database_path_local }}"
register: matrix_mx_puppet_instagram_sqlite_database_path_local_stat_result register: matrix_mx_puppet_instagram_sqlite_database_path_local_stat_result
@ -28,7 +28,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-instagram.service'] systemd_services_to_stop: ['matrix-mx-puppet-instagram.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_instagram_requires_restart: true matrix_mx_puppet_instagram_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-instagram service - name: Check existence of matrix-mx-puppet-instagram service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-instagram.service" path: "/etc/systemd/system/matrix-mx-puppet-instagram.service"
register: matrix_mx_puppet_instagram_service_stat register: matrix_mx_puppet_instagram_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-slack - setup-mx-puppet-slack
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_slack_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-slack - setup-mx-puppet-slack
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_slack_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_slack_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -23,7 +23,7 @@
when: matrix_mx_puppet_slack_enabled | bool and item.when | bool when: matrix_mx_puppet_slack_enabled | bool and item.when | bool
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_slack_base_path }}/database.db" path: "{{ matrix_mx_puppet_slack_base_path }}/database.db"
register: matrix_mx_puppet_slack_stat_database register: matrix_mx_puppet_slack_stat_database
@ -41,7 +41,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_slack_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_slack_sqlite_database_path_local }}"
register: matrix_mx_puppet_slack_sqlite_database_path_local_stat_result register: matrix_mx_puppet_slack_sqlite_database_path_local_stat_result
@ -55,7 +55,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-slack.service'] systemd_services_to_stop: ['matrix-mx-puppet-slack.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_slack_requires_restart: true matrix_mx_puppet_slack_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-slack service - name: Check existence of matrix-mx-puppet-slack service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-slack.service" path: "/etc/systemd/system/matrix-mx-puppet-slack.service"
register: matrix_mx_puppet_slack_service_stat register: matrix_mx_puppet_slack_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-steam - setup-mx-puppet-steam
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_steam_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-steam - setup-mx-puppet-steam
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_steam_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_steam_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -23,7 +23,7 @@
when: matrix_mx_puppet_steam_enabled | bool and item.when | bool when: matrix_mx_puppet_steam_enabled | bool and item.when | bool
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_steam_base_path }}/database.db" path: "{{ matrix_mx_puppet_steam_base_path }}/database.db"
register: matrix_mx_puppet_steam_stat_database register: matrix_mx_puppet_steam_stat_database
@ -45,7 +45,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_steam_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_steam_sqlite_database_path_local }}"
register: matrix_mx_puppet_steam_sqlite_database_path_local_stat_result register: matrix_mx_puppet_steam_sqlite_database_path_local_stat_result
@ -59,7 +59,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-steam.service'] systemd_services_to_stop: ['matrix-mx-puppet-steam.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_steam_requires_restart: true matrix_mx_puppet_steam_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-steam service - name: Check existence of matrix-mx-puppet-steam service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-steam.service" path: "/etc/systemd/system/matrix-mx-puppet-steam.service"
register: matrix_mx_puppet_steam_service_stat register: matrix_mx_puppet_steam_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-twitter - setup-mx-puppet-twitter
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool" when: "run_setup | bool and matrix_mx_puppet_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-mx-puppet-twitter - setup-mx-puppet-twitter
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_mx_puppet_twitter_enabled | bool" when: "run_setup | bool and not matrix_mx_puppet_twitter_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -23,7 +23,7 @@
when: matrix_mx_puppet_twitter_enabled | bool and item.when | bool when: matrix_mx_puppet_twitter_enabled | bool and item.when | bool
- name: Check if an old database file already exists - name: Check if an old database file already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_twitter_base_path }}/database.db" path: "{{ matrix_mx_puppet_twitter_base_path }}/database.db"
register: matrix_mx_puppet_twitter_stat_database register: matrix_mx_puppet_twitter_stat_database
@ -45,7 +45,7 @@
- block: - block:
- name: Check if an SQLite database already exists - name: Check if an SQLite database already exists
stat: ansible.builtin.stat:
path: "{{ matrix_mx_puppet_twitter_sqlite_database_path_local }}" path: "{{ matrix_mx_puppet_twitter_sqlite_database_path_local }}"
register: matrix_mx_puppet_twitter_sqlite_database_path_local_stat_result register: matrix_mx_puppet_twitter_sqlite_database_path_local_stat_result
@ -59,7 +59,7 @@
engine_old: 'sqlite' engine_old: 'sqlite'
systemd_services_to_stop: ['matrix-mx-puppet-twitter.service'] systemd_services_to_stop: ['matrix-mx-puppet-twitter.service']
- import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml" - ansible.builtin.import_tasks: "{{ role_path }}/../matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
matrix_mx_puppet_twitter_requires_restart: true matrix_mx_puppet_twitter_requires_restart: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-mx-puppet-twitter service - name: Check existence of matrix-mx-puppet-twitter service
stat: ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-twitter.service" path: "/etc/systemd/system/matrix-mx-puppet-twitter.service"
register: matrix_mx_puppet_twitter_service_stat register: matrix_mx_puppet_twitter_service_stat

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_sms_bridge_enabled | bool" when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-matrix-sms-bridge - setup-matrix-sms-bridge
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_sms_bridge_enabled | bool" when: "run_setup | bool and matrix_sms_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-matrix-sms-bridge - setup-matrix-sms-bridge
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_sms_bridge_enabled | bool" when: "run_setup | bool and not matrix_sms_bridge_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-sms-bridge service - name: Check existence of matrix-sms-bridge service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service" path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
register: matrix_sms_bridge_service_stat register: matrix_sms_bridge_service_stat

View file

@ -1,29 +1,29 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_client_cinny_enabled | bool" when: "run_setup | bool and matrix_client_cinny_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-cinny - setup-client-cinny
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_client_cinny_enabled | bool" when: "run_setup | bool and matrix_client_cinny_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-cinny - setup-client-cinny
- import_tasks: "{{ role_path }}/tasks/self_check.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
when: "run_self_check | bool and matrix_client_cinny_enabled | bool" when: "run_self_check | bool and matrix_client_cinny_enabled | bool"
tags: tags:
- self-check - self-check
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_client_cinny_enabled | bool" when: "run_setup | bool and not matrix_client_cinny_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,6 +1,6 @@
--- ---
- name: Check existence of matrix-client-cinny.service - name: Check existence of matrix-client-cinny.service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-client-cinny.service" path: "{{ matrix_systemd_path }}/matrix-client-cinny.service"
register: matrix_client_cinny_service_stat register: matrix_client_cinny_service_stat

View file

@ -1,40 +1,40 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_client_element_enabled | bool" when: "run_setup | bool and matrix_client_element_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- import_tasks: "{{ role_path }}/tasks/prepare_themes.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/prepare_themes.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- import_tasks: "{{ role_path }}/tasks/migrate_riot_web.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/migrate_riot_web.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_client_element_enabled | bool" when: "run_setup | bool and matrix_client_element_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_client_element_enabled | bool" when: "run_setup | bool and not matrix_client_element_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-element - setup-client-element
- import_tasks: "{{ role_path }}/tasks/self_check.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
when: "run_self_check | bool and matrix_client_element_enabled | bool" when: "run_self_check | bool and matrix_client_element_enabled | bool"

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-riot-web.service - name: Check existence of matrix-riot-web.service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-riot-web.service" path: "{{ matrix_systemd_path }}/matrix-riot-web.service"
register: matrix_client_riot_web_service_stat register: matrix_client_riot_web_service_stat
when: "matrix_client_element_enabled | bool" when: "matrix_client_element_enabled | bool"
@ -27,7 +27,7 @@
when: "matrix_client_element_enabled | bool and matrix_client_riot_web_service_stat.stat.exists" when: "matrix_client_element_enabled | bool and matrix_client_riot_web_service_stat.stat.exists"
- name: Check existence of /matrix/riot-web - name: Check existence of /matrix/riot-web
stat: ansible.builtin.stat:
path: "/matrix/riot-web" path: "/matrix/riot-web"
register: matrix_client_riot_web_dir_stat register: matrix_client_riot_web_dir_stat
when: "matrix_client_element_enabled | bool" when: "matrix_client_element_enabled | bool"

View file

@ -11,7 +11,7 @@
dest: "{{ role_path }}/files/scratchpad/themes" dest: "{{ role_path }}/files/scratchpad/themes"
- name: Find all Element theme files - name: Find all Element theme files
find: ansible.builtin.find:
paths: "{{ role_path }}/files/scratchpad/themes" paths: "{{ role_path }}/files/scratchpad/themes"
patterns: "*.json" patterns: "*.json"
recurse: true recurse: true

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-client-element.service - name: Check existence of matrix-client-element.service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-client-element.service" path: "{{ matrix_systemd_path }}/matrix-client-element.service"
register: matrix_client_element_service_stat register: matrix_client_element_service_stat

View file

@ -1,28 +1,28 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool" when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-hydrogen - setup-client-hydrogen
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_client_hydrogen_enabled | bool" when: "run_setup | bool and matrix_client_hydrogen_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-hydrogen - setup-client-hydrogen
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_client_hydrogen_enabled | bool" when: "run_setup | bool and not matrix_client_hydrogen_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-client-hydrogen - setup-client-hydrogen
- import_tasks: "{{ role_path }}/tasks/self_check.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check.yml"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
when: "run_self_check | bool and matrix_client_hydrogen_enabled | bool" when: "run_self_check | bool and matrix_client_hydrogen_enabled | bool"

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-client-hydrogen.service - name: Check existence of matrix-client-hydrogen.service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-client-hydrogen.service" path: "{{ matrix_systemd_path }}/matrix-client-hydrogen.service"
register: matrix_client_hydrogen_service_stat register: matrix_client_hydrogen_service_stat

View file

@ -1,19 +1,19 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/start.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/start.yml"
when: run_start | bool when: run_start | bool
tags: tags:
- start - start
- import_tasks: "{{ role_path }}/tasks/stop.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/stop.yml"
when: run_stop | bool when: run_stop | bool
tags: tags:
- stop - stop
- import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
tags: tags:
- run-docker-prune - run-docker-prune

View file

@ -29,14 +29,14 @@
# Waiting too long (30s) may not work for a similar reason, # Waiting too long (30s) may not work for a similar reason,
# as we may run into systemd's automatic restart logic retrying the service. # as we may run into systemd's automatic restart logic retrying the service.
- name: Wait a bit, so that services can start (or fail) - name: Wait a bit, so that services can start (or fail)
wait_for: ansible.builtin.wait_for:
timeout: "{{ matrix_common_after_systemd_service_start_wait_for_timeout_seconds }}" timeout: "{{ matrix_common_after_systemd_service_start_wait_for_timeout_seconds }}"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
- block: - block:
- name: Populate service facts - name: Populate service facts
service_facts: ansible.builtin.service_facts:
- name: Fail if service isn't detected to be running - name: Fail if service isn't detected to be running
ansible.builtin.fail: ansible.builtin.fail:

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_corporal_enabled | bool" when: "run_setup | bool and matrix_corporal_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-corporal - setup-corporal
- import_tasks: "{{ role_path }}/tasks/setup_corporal.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_corporal.yml"
when: run_setup | bool when: run_setup | bool
tags: tags:
- setup-all - setup-all
- setup-corporal - setup-corporal
- import_tasks: "{{ role_path }}/tasks/self_check_corporal.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_corporal.yml"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
when: "run_self_check | bool and matrix_corporal_enabled | bool" when: "run_self_check | bool and matrix_corporal_enabled | bool"

View file

@ -80,7 +80,7 @@
# #
- name: Check existence of matrix-corporal service - name: Check existence of matrix-corporal service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-corporal.service" path: "{{ matrix_systemd_path }}/matrix-corporal.service"
register: matrix_corporal_service_stat register: matrix_corporal_service_stat
when: "not matrix_corporal_enabled | bool" when: "not matrix_corporal_enabled | bool"

View file

@ -1,22 +1,22 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/init.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
tags: tags:
- always - always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup | bool and matrix_coturn_enabled | bool" when: "run_setup | bool and matrix_coturn_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-coturn - setup-coturn
- import_tasks: "{{ role_path }}/tasks/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup | bool and matrix_coturn_enabled | bool" when: "run_setup | bool and matrix_coturn_enabled | bool"
tags: tags:
- setup-all - setup-all
- setup-coturn - setup-coturn
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup | bool and not matrix_coturn_enabled | bool" when: "run_setup | bool and not matrix_coturn_enabled | bool"
tags: tags:
- setup-all - setup-all

View file

@ -1,7 +1,7 @@
--- ---
- name: Check existence of matrix-coturn service - name: Check existence of matrix-coturn service
stat: ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-coturn.service" path: "{{ matrix_systemd_path }}/matrix-coturn.service"
register: matrix_coturn_service_stat register: matrix_coturn_service_stat
when: "not matrix_coturn_enabled | bool" when: "not matrix_coturn_enabled | bool"

View file

@ -1,7 +1,7 @@
--- ---
- import_tasks: "{{ role_path }}/tasks/dendrite/setup_install.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/dendrite/setup_install.yml"
when: matrix_dendrite_enabled | bool when: matrix_dendrite_enabled | bool
- import_tasks: "{{ role_path }}/tasks/dendrite/setup_uninstall.yml" - ansible.builtin.import_tasks: "{{ role_path }}/tasks/dendrite/setup_uninstall.yml"
when: "not matrix_dendrite_enabled | bool" when: "not matrix_dendrite_enabled | bool"

Some files were not shown because too many files have changed in this diff Show more