commit
cbada7341d
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
use_default_rules: true
|
||||||
|
|
||||||
|
skip_list:
|
||||||
|
- unnamed-task
|
||||||
|
- no-handler
|
||||||
|
- no-jinja-nesting
|
||||||
|
- schema
|
||||||
|
- command-instead-of-shell
|
||||||
|
- role-name
|
||||||
|
|
||||||
|
offline: false
|
@ -0,0 +1,7 @@
|
|||||||
|
.PHONY: lint
|
||||||
|
|
||||||
|
help: ## Show this help.
|
||||||
|
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
|
||||||
|
|
||||||
|
lint: ## Runs ansible-lint against all roles in the playbook
|
||||||
|
ansible-lint
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-aux-files
|
- setup-aux-files
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure AUX directories are created
|
- name: Ensure AUX directories are created
|
||||||
file:
|
ansible.builtin.file:
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ item.owner|default(matrix_user_username) }}"
|
owner: "{{ item.owner | default(matrix_user_username) }}"
|
||||||
group: "{{ item.group|default(matrix_user_groupname) }}"
|
group: "{{ item.group | default(matrix_user_groupname) }}"
|
||||||
mode: "{{ item.mode|default(matrix_aux_directory_default_mode) }}"
|
mode: "{{ item.mode | default(matrix_aux_directory_default_mode) }}"
|
||||||
with_items: "{{ matrix_aux_directory_definitions }}"
|
with_items: "{{ matrix_aux_directory_definitions }}"
|
||||||
|
|
||||||
- name: Ensure AUX files are created
|
- name: Ensure AUX files are created
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
content: "{{ item.content }}"
|
content: "{{ item.content }}"
|
||||||
owner: "{{ item.owner|default(matrix_user_username) }}"
|
owner: "{{ item.owner | default(matrix_user_username) }}"
|
||||||
group: "{{ item.group|default(matrix_user_groupname) }}"
|
group: "{{ item.group | default(matrix_user_groupname) }}"
|
||||||
mode: "{{ item.mode|default(matrix_aux_file_default_mode) }}"
|
mode: "{{ item.mode | default(matrix_aux_file_default_mode) }}"
|
||||||
with_items: "{{ matrix_aux_file_definitions }}"
|
with_items: "{{ matrix_aux_file_definitions }}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-backup-borg.timer'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-backup-borg.timer'] }}"
|
||||||
when: matrix_backup_borg_enabled|bool
|
when: matrix_backup_borg_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-backup-borg
|
- setup-backup-borg
|
||||||
|
@ -1,31 +1,31 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure Docker repository is enabled
|
- name: Ensure Docker repository is enabled
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "{{ role_path }}/files/yum.repos.d/docker-ce-centos.repo"
|
src: "{{ role_path }}/files/yum.repos.d/docker-ce-centos.repo"
|
||||||
dest: "/etc/yum.repos.d/docker-ce.repo"
|
dest: "/etc/yum.repos.d/docker-ce.repo"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce'
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||||||
|
|
||||||
- name: Ensure Docker's RPM key is trusted
|
- name: Ensure Docker's RPM key is trusted
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
state: present
|
state: present
|
||||||
key: https://download.docker.com/linux/centos/gpg
|
key: https://download.docker.com/linux/centos/gpg
|
||||||
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce'
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||||||
|
|
||||||
- name: Ensure yum packages are installed
|
- name: Ensure yum packages are installed
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
state: latest
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Ensure Docker is installed
|
- name: Ensure Docker is installed
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_docker_package_name }}"
|
- "{{ matrix_docker_package_name }}"
|
||||||
- docker-python
|
- docker-python
|
||||||
state: latest
|
state: present
|
||||||
when: matrix_docker_installation_enabled|bool
|
when: matrix_docker_installation_enabled | bool
|
||||||
|
@ -1,44 +1,44 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure Docker repository is enabled
|
- name: Ensure Docker repository is enabled
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "{{ role_path }}/files/yum.repos.d/docker-ce-centos.repo"
|
src: "{{ role_path }}/files/yum.repos.d/docker-ce-centos.repo"
|
||||||
dest: "/etc/yum.repos.d/docker-ce.repo"
|
dest: "/etc/yum.repos.d/docker-ce.repo"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce'
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||||||
|
|
||||||
- name: Ensure Docker's RPM key is trusted
|
- name: Ensure Docker's RPM key is trusted
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
state: present
|
state: present
|
||||||
key: https://download.docker.com/linux/centos/gpg
|
key: https://download.docker.com/linux/centos/gpg
|
||||||
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce'
|
when: matrix_docker_installation_enabled | bool and matrix_docker_package_name == 'docker-ce'
|
||||||
|
|
||||||
- name: Ensure EPEL is installed
|
- name: Ensure EPEL is installed
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- epel-release
|
- epel-release
|
||||||
state: latest
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Ensure yum packages are installed
|
- name: Ensure yum packages are installed
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
state: latest
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Ensure Docker is installed
|
- name: Ensure Docker is installed
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_docker_package_name }}"
|
- "{{ matrix_docker_package_name }}"
|
||||||
- python3-pip
|
- python3-pip
|
||||||
state: latest
|
state: present
|
||||||
when: matrix_docker_installation_enabled|bool
|
when: matrix_docker_installation_enabled | bool
|
||||||
|
|
||||||
- name: Ensure Docker-Py is installed
|
- name: Ensure Docker-Py is installed
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name: docker-py
|
name: docker-py
|
||||||
state: latest
|
state: present
|
||||||
when: matrix_docker_installation_enabled|bool
|
when: matrix_docker_installation_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
# This is for both RedHat 7 and 8
|
# This is for both RedHat 7 and 8
|
||||||
- name: Ensure fuse installed (RedHat)
|
- name: Ensure fuse installed (RedHat)
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- fuse
|
- fuse
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
# This is for both Debian and Raspbian
|
# This is for both Debian and Raspbian
|
||||||
- name: Ensure fuse installed (Debian/Raspbian)
|
- name: Ensure fuse installed (Debian/Raspbian)
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- fuse
|
- fuse
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Ensure fuse installed (Archlinux)
|
- name: Ensure fuse installed (Archlinux)
|
||||||
pacman:
|
pacman:
|
||||||
name:
|
name:
|
||||||
- fuse3
|
- fuse3
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_distribution == 'Archlinux'
|
when: ansible_distribution == 'Archlinux'
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
# This is for both RedHat 7 and 8
|
# This is for both RedHat 7 and 8
|
||||||
- name: Ensure openssl installed (RedHat)
|
- name: Ensure openssl installed (RedHat)
|
||||||
yum:
|
ansible.builtin.yum:
|
||||||
name:
|
name:
|
||||||
- openssl
|
- openssl
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
# This is for both Debian and Raspbian
|
# This is for both Debian and Raspbian
|
||||||
- name: Ensure openssl installed (Debian/Raspbian)
|
- name: Ensure openssl installed (Debian/Raspbian)
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- openssl
|
- openssl
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Ensure openssl installed (Archlinux)
|
- name: Ensure openssl installed (Archlinux)
|
||||||
pacman:
|
pacman:
|
||||||
name:
|
name:
|
||||||
- openssl
|
- openssl
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_distribution == 'Archlinux'
|
when: ansible_distribution == 'Archlinux'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-buscarron.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-buscarron.service'] }}"
|
||||||
when: matrix_bot_buscarron_enabled|bool
|
when: matrix_bot_buscarron_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-buscarron
|
- setup-bot-buscarron
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-go-neb.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-go-neb.service'] }}"
|
||||||
when: matrix_bot_go_neb_enabled|bool
|
when: matrix_bot_go_neb_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-go-neb
|
- setup-bot-go-neb
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Fail if there's not at least 1 client
|
- name: Fail if there's not at least 1 client
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: >-
|
msg: >-
|
||||||
You need at least 1 client in the matrix_bot_go_neb_clients block.
|
You need at least 1 client in the matrix_bot_go_neb_clients block.
|
||||||
when: matrix_bot_go_neb_clients is not defined or matrix_bot_go_neb_clients[0] is not defined
|
when: matrix_bot_go_neb_clients is not defined or matrix_bot_go_neb_clients[0] is not defined
|
||||||
|
|
||||||
- name: Fail if there's not at least 1 service
|
- name: Fail if there's not at least 1 service
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: >-
|
msg: >-
|
||||||
You need at least 1 service in the matrix_bot_go_neb_services block.
|
You need at least 1 service in the matrix_bot_go_neb_services block.
|
||||||
when: matrix_bot_go_neb_services is not defined or matrix_bot_go_neb_services[0] is not defined
|
when: matrix_bot_go_neb_services is not defined or matrix_bot_go_neb_services[0] is not defined
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-honoroit.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-honoroit.service'] }}"
|
||||||
when: matrix_bot_honoroit_enabled|bool
|
when: matrix_bot_honoroit_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-honoroit
|
- setup-bot-honoroit
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-registration-bot.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-registration-bot.service'] }}"
|
||||||
when: matrix_bot_matrix_registration_bot_enabled|bool
|
when: matrix_bot_matrix_registration_bot_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-matrix-registration-bot
|
- setup-bot-matrix-registration-bot
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-reminder-bot.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-matrix-reminder-bot.service'] }}"
|
||||||
when: matrix_bot_matrix_reminder_bot_enabled|bool
|
when: matrix_bot_matrix_reminder_bot_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-matrix-reminder-bot
|
- setup-bot-matrix-reminder-bot
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-bot-mjolnir
|
- setup-bot-mjolnir
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-appservice-discord
|
- setup-appservice-discord
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-appservice-irc
|
- setup-appservice-irc
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-appservice-slack
|
- setup-appservice-slack
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-appservice-webhooks
|
- setup-appservice-webhooks
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-beeper-linkedin.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-beeper-linkedin.service'] }}"
|
||||||
when: matrix_beeper_linkedin_enabled|bool
|
when: matrix_beeper_linkedin_enabled | bool
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
# If the matrix-synapse role is not used, these variables may not exist.
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_synapse_container_extra_arguments: >
|
matrix_synapse_container_extra_arguments: >
|
||||||
{{
|
{{
|
||||||
matrix_synapse_container_extra_arguments|default([])
|
matrix_synapse_container_extra_arguments | default([])
|
||||||
+
|
+
|
||||||
["--mount type=bind,src={{ matrix_beeper_linkedin_config_path }}/registration.yaml,dst=/matrix-beeper-linkedin-registration.yaml,ro"]
|
["--mount type=bind,src={{ matrix_beeper_linkedin_config_path }}/registration.yaml,dst=/matrix-beeper-linkedin-registration.yaml,ro"]
|
||||||
}}
|
}}
|
||||||
|
|
||||||
matrix_synapse_app_service_config_files: >
|
matrix_synapse_app_service_config_files: >
|
||||||
{{
|
{{
|
||||||
matrix_synapse_app_service_config_files|default([])
|
matrix_synapse_app_service_config_files | default([])
|
||||||
+
|
+
|
||||||
["/matrix-beeper-linkedin-registration.yaml"]
|
["/matrix-beeper-linkedin-registration.yaml"]
|
||||||
}}
|
}}
|
||||||
when: matrix_beeper_linkedin_enabled|bool
|
when: matrix_beeper_linkedin_enabled | bool
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
---
|
---
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-go-skype-bridge.service'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-go-skype-bridge.service'] }}"
|
||||||
when: matrix_go_skype_bridge_enabled|bool
|
when: matrix_go_skype_bridge_enabled | bool
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
# If the matrix-synapse role is not used, these variables may not exist.
|
||||||
- set_fact:
|
- ansible.builtin.set_fact:
|
||||||
matrix_synapse_container_extra_arguments: >
|
matrix_synapse_container_extra_arguments: >
|
||||||
{{
|
{{
|
||||||
matrix_synapse_container_extra_arguments|default([])
|
matrix_synapse_container_extra_arguments | default([])
|
||||||
+
|
+
|
||||||
["--mount type=bind,src={{ matrix_go_skype_bridge_config_path }}/registration.yaml,dst=/matrix-go-skype-bridge-registration.yaml,ro"]
|
["--mount type=bind,src={{ matrix_go_skype_bridge_config_path }}/registration.yaml,dst=/matrix-go-skype-bridge-registration.yaml,ro"]
|
||||||
}}
|
}}
|
||||||
|
|
||||||
matrix_synapse_app_service_config_files: >
|
matrix_synapse_app_service_config_files: >
|
||||||
{{
|
{{
|
||||||
matrix_synapse_app_service_config_files|default([])
|
matrix_synapse_app_service_config_files | default([])
|
||||||
+
|
+
|
||||||
["/matrix-go-skype-bridge-registration.yaml"]
|
["/matrix-go-skype-bridge-registration.yaml"]
|
||||||
}}
|
}}
|
||||||
when: matrix_go_skype_bridge_enabled|bool
|
when: matrix_go_skype_bridge_enabled | bool
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- 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
|
||||||
- setup-go-skype-bridge
|
- setup-go-skype-bridge
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue