- name: Check sourceFile and logFileName are set | |
when: sourceFile is not defined or logFileName is not defined | |
fail: | |
msg: "sourceFile and logFileName must be set" | |
- name: Does the file exist | |
register: stat_log | |
stat: | |
path: "{{ sourceFile }}" | |
- name: Store on executor | |
when: stat_log.stat.exists | |
synchronize: | |
mode: pull | |
src: "{{ sourceFile }}" | |
dest: "{{ zuul.executor.log_root }}/{{ logFileName }}" | |
verify_host: true | |
owner: no | |
group: no |