|
|
|
@ -22,7 +22,39 @@
|
|
|
|
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
|
|
|
force_source: "{{ matrix_mxisd_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_mxisd_docker_image_force_pull }}"
|
|
|
|
|
when: matrix_mxisd_enabled|bool
|
|
|
|
|
when: matrix_mxisd_enabled|bool and not matrix_raspberry_pi
|
|
|
|
|
|
|
|
|
|
- name: Ensure gradel is installed on Raspberry pi for building
|
|
|
|
|
apt:
|
|
|
|
|
name:
|
|
|
|
|
- gradle
|
|
|
|
|
state: present
|
|
|
|
|
update_cache: yes
|
|
|
|
|
when: "matrix_mxisd_enabled|bool and matrix_raspberry_pi"
|
|
|
|
|
|
|
|
|
|
- name: Ensure mxisd repository is present on Raspberry pi
|
|
|
|
|
git:
|
|
|
|
|
repo: https://github.com/kamax-matrix/mxisd.git
|
|
|
|
|
dest: "{{ matrix_docker_mxisd_src_files_path }}"
|
|
|
|
|
version: "v{{ matrix_mxisd_docker_image.split(':')[1] }}"
|
|
|
|
|
force: "yes"
|
|
|
|
|
when: "matrix_mxisd_enabled|bool and matrix_raspberry_pi"
|
|
|
|
|
|
|
|
|
|
# - name: Ensure mxisd Docker image is build (Raspberry pi)
|
|
|
|
|
# docker_image:
|
|
|
|
|
# name: "{{ matrix_mxisd_docker_image }}"
|
|
|
|
|
# source: build
|
|
|
|
|
# build:
|
|
|
|
|
# dockerfile: Dockerfile
|
|
|
|
|
# path: "{{ matrix_docker_mxisd_src_files_path }}"
|
|
|
|
|
# pull: yes
|
|
|
|
|
# when: "matrix_mxisd_enabled|bool and matrix_raspberry_pi"
|
|
|
|
|
|
|
|
|
|
- name: Ensure mxisd Docker image is build (Raspberry pi)
|
|
|
|
|
shell: "./gradlew dockerBuild"
|
|
|
|
|
args:
|
|
|
|
|
chdir: "{{ matrix_docker_mxisd_src_files_path }}"
|
|
|
|
|
when: "matrix_mxisd_enabled|bool and matrix_raspberry_pi"
|
|
|
|
|
|
|
|
|
|
- name: Ensure mxisd config installed
|
|
|
|
|
copy:
|
|
|
|
|