- hosts: all tasks: - name: Copy files from {{ ansible_user_dir }}/ on node synchronize: src: '{{ ansible_user_dir }}/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true verify_host: true rsync_opts: - --include=/logs/** - --include=*/ - --exclude=* - --prune-empty-dirs - name: Ensure artifacts directory exists file: path: '{{ zuul.executor.work_root }}/artifacts' state: directory delegate_to: localhost - name: Copy files from {{ ansible_user_dir }}/ on node synchronize: src: '{{ ansible_user_dir }}/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true verify_host: true rsync_opts: - --include=/UPLOAD_CONTAINERS/* - --include=*/ - --exclude=* - --prune-empty-dirs