blob: 310ba8798c1e797ab14bb91320d7f8b496fc2ed0 [file] [log] [blame]
- 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