cab4e8a1cc
This change enables using fetch-translation role along with the fetch-output role. By default the role still synchronizes artifacts back to the executor. Change-Id: I85c021706c1fa20f8d28b3a1f56c9435ac3836d5
25 lines
656 B
YAML
25 lines
656 B
YAML
- name: Check for translation files
|
|
stat:
|
|
path: "{{ translation_output_src }}"
|
|
register: translation_files
|
|
|
|
- block:
|
|
- name: Collect translation source files
|
|
synchronize:
|
|
dest: "{{ zuul_executor_dest }}"
|
|
mode: pull
|
|
src: "{{ translation_output_src }}"
|
|
verify_host: true
|
|
owner: no
|
|
group: no
|
|
when: not zuul_use_fetch_output
|
|
|
|
- name: Copy translation source files
|
|
copy:
|
|
dest: "{{ zuul_output_dir }}/artifacts"
|
|
src: "{{ translation_output_src }}"
|
|
mode: 0755
|
|
remote_src: true
|
|
when: zuul_use_fetch_output
|
|
when: translation_files.stat.exists
|