mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 12:47:39 +01:00
add riot-web support for raspberry pi
This commit is contained in:
parent
40d0fea06c
commit
610c98d6ab
@ -28,6 +28,7 @@ matrix_base_data_path_mode: "750"
|
||||
matrix_static_files_base_path: "{{ matrix_base_data_path }}/static-files"
|
||||
matrix_docker_src_files_path: "{{ matrix_base_data_path }}/docker-src"
|
||||
matrix_docker_synapse_src_files_path: "{{ matrix_docker_src_files_path }}/synapse"
|
||||
matrix_docker_riot_web_src_files_path: "{{ matrix_docker_src_files_path }}/riot-web"
|
||||
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"
|
||||
|
@ -24,6 +24,7 @@
|
||||
- "{{ matrix_base_data_path }}"
|
||||
- { src: "{{ matrix_docker_src_files_path }}", when: "{{ matrix_raspberry_pi }}" }
|
||||
- { src: "{{ matrix_docker_synapse_src_files_path }}", when: "{{ matrix_raspberry_pi }}" }
|
||||
- { src: "{{ matrix_docker_riot_web_src_files_path }}", when: "{{ matrix_raspberry_pi }}" }
|
||||
- { 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 }}"}
|
||||
|
@ -19,7 +19,25 @@
|
||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||
force_source: "{{ matrix_riot_web_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_riot_web_docker_image_force_pull }}"
|
||||
when: matrix_riot_web_enabled|bool
|
||||
when: matrix_riot_web_enabled|bool and not matrix_raspberry_pi
|
||||
|
||||
- name: Ensure Riot Web repository is present on Raspberry pi
|
||||
git:
|
||||
repo: https://github.com/vector-im/riot-web.git
|
||||
dest: "{{ matrix_docker_riot_web_src_files_path }}"
|
||||
version: "v{{ matrix_riot_web_docker_image.split(':')[1] }}"
|
||||
force: "yes"
|
||||
when: "matrix_riot_web_enabled|bool and matrix_raspberry_pi"
|
||||
|
||||
- name: Ensure Riot Web Docker image is build (Raspberry pi)
|
||||
docker_image:
|
||||
name: "{{ matrix_riot_web_docker_image }}"
|
||||
source: build
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
path: "{{ matrix_docker_riot_web_src_files_path }}"
|
||||
pull: yes
|
||||
when: "matrix_riot_web_enabled|bool and matrix_raspberry_pi"
|
||||
|
||||
- name: Ensure Matrix riot-web configuration installed
|
||||
copy:
|
||||
|
Loading…
Reference in New Issue
Block a user