add mautrix-hangouts support for raspberry pi

This commit is contained in:
Horvath Gergely 2020-02-21 18:27:26 +01:00
parent ac118d2f25
commit 40d0fea06c
3 changed files with 20 additions and 0 deletions

View File

@ -31,6 +31,7 @@ matrix_docker_synapse_src_files_path: "{{ matrix_docker_src_files_path }}/synaps
matrix_docker_coturn_src_files_path: "{{ matrix_docker_src_files_path }}/coturn"
matrix_docker_mxisd_src_files_path: "{{ matrix_docker_src_files_path }}/mxisd"
matrix_docker_mautrix_facebook_src_files_path: "{{ matrix_docker_src_files_path }}/mautrix-facebook"
matrix_docker_mautrix_hangouts_src_files_path: "{{ matrix_docker_src_files_path }}/mautrix-hangouts"
matrix_homeserver_url: "https://{{ matrix_server_fqn_matrix }}"

View File

@ -27,6 +27,7 @@
- { src: "{{ matrix_docker_coturn_src_files_path }}", when: "{{ matrix_coturn_enabled }}"}
- { src: "{{ matrix_docker_mxisd_src_files_path }}", when: "{{ matrix_mxisd_enabled }}"}
- { src: "{{ matrix_docker_mautrix_facebook_src_files_path }}", when: "{{ matrix_mautrix_facebook_enabled }}"}
- { src: "{{ matrix_docker_mautrix_hangouts_src_files_path }}", when: "{{ matrix_mautrix_hangouts_enabled }}"}
# `docker_network` doesn't work as expected when the given network
# is a substring of a network that already exists.

View File

@ -14,6 +14,24 @@
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
force_source: "{{ matrix_mautrix_hangouts_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_mautrix_hangouts_docker_image_force_pull }}"
when: matrix_mautrix_hangouts_enabled|bool and not matrix_raspberry_pi
- name: Ensure Mautrix Hangots repository is present on Raspberry pi
git:
repo: https://github.com/tulir/mautrix-hangouts.git
dest: "{{ matrix_docker_mautrix_hangouts_src_files_path }}"
force: "yes"
when: "matrix_mautrix_hangouts_enabled|bool and matrix_raspberry_pi"
- name: Ensure Mautrix Hangouts Docker image is build (Raspberry pi)
docker_image:
name: "{{ matrix_mautrix_hangouts_docker_image }}"
source: build
build:
dockerfile: Dockerfile
path: "{{ matrix_docker_mautrix_hangouts_src_files_path }}"
pull: yes
when: "matrix_mautrix_hangouts_enabled|bool and matrix_raspberry_pi"
- name: Ensure Mautrix Hangouts paths exist
file: