Make gradle installation fail in a friendlier way on CentOS

development
Slavi Pantaleev 5 years ago
parent 2b85fde103
commit 063e988db2

@ -25,26 +25,31 @@
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_mxisd_docker_image_force_pull }}" force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_mxisd_docker_image_force_pull }}"
when: matrix_mxisd_enabled|bool and not matrix_mxisd_container_image_self_build when: matrix_mxisd_enabled|bool and not matrix_mxisd_container_image_self_build
- name: Ensure gradel is installed for self-building - block:
apt: - name: Ensure gradle is installed for self-building
name: apt:
- gradle name:
state: present - gradle
update_cache: yes state: present
when: "matrix_mxisd_enabled|bool and matrix_mxisd_container_image_self_build" update_cache: yes
when: (ansible_os_family == 'Debian')
- name: Ensure mxisd repository is present on self-build
git: - name: Ensure gradle is installed for self-building
repo: https://github.com/kamax-matrix/mxisd.git fail:
dest: "{{ matrix_mxisd_docker_src_files_path }}" msg: "Installing gradle on CentOS is currently not supported, so self-building mxisd cannot happen at this time"
version: "v{{ matrix_mxisd_docker_image.split(':')[1] }}" when: ansible_distribution == 'CentOS'
force: "yes"
when: "matrix_mxisd_enabled|bool and matrix_mxisd_container_image_self_build" - name: Ensure mxisd repository is present on self-build
git:
- name: Ensure mxisd Docker image is build repo: https://github.com/kamax-matrix/mxisd.git
shell: "./gradlew dockerBuild" dest: "{{ matrix_mxisd_docker_src_files_path }}"
args: version: "v{{ matrix_mxisd_docker_image.split(':')[1] }}"
chdir: "{{ matrix_mxisd_docker_src_files_path }}" force: "yes"
- name: Ensure mxisd Docker image is built
shell: "./gradlew dockerBuild"
args:
chdir: "{{ matrix_mxisd_docker_src_files_path }}"
when: "matrix_mxisd_enabled|bool and matrix_mxisd_container_image_self_build" when: "matrix_mxisd_enabled|bool and matrix_mxisd_container_image_self_build"
- name: Ensure mxisd config installed - name: Ensure mxisd config installed

Loading…
Cancel
Save