Browse Source

Sync is no longer loopy

Sync doesn't loop over the dir, instead it pulls
all files directly.

There is no need for loop in this case,
as we have only one element to iterate over.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I05606bfdb7fb2191cfe7590a432b7817b3cb35f2
changes/12/790212/2
Jiri Podivin 3 months ago
parent
commit
771eacc0b6
  1. 9
      roles/fetch_validations/tasks/main.yaml

9
roles/fetch_validations/tasks/main.yaml

@ -12,17 +12,12 @@
- name: Collect logs and artifacts
synchronize:
dest: "{{ vf_output.dest }}/"
dest: "{{ log_path }}/validations-logs"
mode: pull
src: "{{ output_dir }}/{{ vf_output.src }}/"
src: "{{ output_dir }}/artifacts/"
verify_host: true
owner: false
group: false
loop:
- dest: "{{ log_path }}/validations-logs"
src: "artifacts"
loop_control:
loop_var: vf_output
- name: Find validations data
find:

Loading…
Cancel
Save