diskimage-builder/playbooks/dib-functests/post.yaml

14 lines
377 B
YAML
Raw Normal View History

- hosts: all
tasks:
- name: Check logs directory exists
stat: path='{{ ansible_user_dir }}/logs/'
register: check_path
- name: Copy log files from {{ ansible_user_dir }} on node
synchronize:
src: '{{ ansible_user_dir }}/logs/'
dest: '{{ zuul.executor.log_root }}/logs'
mode: pull
when: check_path.stat.exists == true