add possibility to install synapse on raspberry pi

This commit is contained in:
Horvath Gergely
2020-02-17 21:48:48 +01:00
parent bbbcc18c70
commit a096eafb45
6 changed files with 48 additions and 2 deletions

View File

@ -18,12 +18,31 @@
group: "{{ matrix_user_username }}"
when: "not local_path_media_store_stat.failed and not local_path_media_store_stat.stat.exists"
- name: Ensure Synapse repository is present on Raspberry pi
git:
repo: https://github.com/matrix-org/synapse.git
dest: "{{ matrix_docker_synapse_src_files_path }}"
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
force: "yes"
when: "matrix_raspberry_pi"
- name: Ensure Synapse Docker image is build (Raspberry pi)
docker_image:
name: "{{ matrix_synapse_docker_image }}"
source: build
build:
dockerfile: docker/Dockerfile
path: "{{ matrix_docker_synapse_src_files_path }}"
pull: yes
when: "matrix_raspberry_pi"
- name: Ensure Synapse Docker image is pulled
docker_image:
name: "{{ matrix_synapse_docker_image }}"
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
force_source: "{{ matrix_synapse_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_synapse_docker_image_force_pull }}"
when: "not matrix_raspberry_pi"
- name: Check if a Synapse signing key exists
stat: