add riot-web support for raspberry pi

This commit is contained in:
Horvath Gergely
2020-02-21 18:51:56 +01:00
parent 40d0fea06c
commit 610c98d6ab
3 changed files with 21 additions and 1 deletions

View File

@ -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: