8c6512107c
Newer ansbile-lint finds "when" or "become" statements that are at the end of blocks. Ordering these before the block seems like a very logical thing to do, as we read from top-to-bottom so it's good to see if the block will execute or not. This is a no-op, and just moves the places the newer linter found. Change-Id: If4d1dc4343ea2575c64510e1829c3fe02d6c273f
26 lines
693 B
YAML
26 lines
693 B
YAML
- name: Check for translation files
|
|
stat:
|
|
path: "{{ translation_output_src }}"
|
|
register: translation_files
|
|
|
|
- name: Collection translation files
|
|
when: translation_files.stat.exists
|
|
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
|