Pārlūkot izejas kodu

Move when statement to block

The when statement is supposed to be on the block, not on the individual task.

It affects all tasks within the block (they're all to be executed when ma1sd is enabled and self-building is requested0.
pull/588/head
Slavi Pantaleev pirms 6 gadiem
committed by GitHub
vecāks
revīzija
ab188018f3
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +1
    -2
      roles/matrix-ma1sd/tasks/setup_ma1sd.yml

+ 1
- 2
roles/matrix-ma1sd/tasks/setup_ma1sd.yml Parādīt failu

@@ -61,7 +61,6 @@
shell: "./gradlew dockerBuild" shell: "./gradlew dockerBuild"
args: args:
chdir: "{{ matrix_ma1sd_docker_src_files_path }}" chdir: "{{ matrix_ma1sd_docker_src_files_path }}"
when: "matrix_ma1sd_enabled|bool and matrix_ma1sd_container_image_self_build"


- name: Ensure ma1sd Docker image is tagged correctly - name: Ensure ma1sd Docker image is tagged correctly
docker_image: docker_image:
@@ -69,7 +68,7 @@
repository: "{{ matrix_ma1sd_docker_image }}" repository: "{{ matrix_ma1sd_docker_image }}"
force_tag: yes force_tag: yes
source: local source: local
when: "matrix_ma1sd_enabled|bool and matrix_ma1sd_container_image_self_build"
when: "matrix_ma1sd_enabled|bool and matrix_ma1sd_container_image_self_build"


- name: Ensure ma1sd config installed - name: Ensure ma1sd config installed
copy: copy:


Notiek ielāde…
Atcelt
Saglabāt