- hosts: primary tasks: - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true verify_host: true rsync_opts: - --include=/logs/** - --include=*/ - --exclude=* - --prune-empty-dirs - name: Copy ganesha config and logs synchronize: src: '{{ item.src }}' dest: '{{ zuul.executor.log_root }}/{{ item.dest }}' mode: pull copy_links: true verify_host: true with_items: - src: /etc/ganesha dest: logs/etc/ - src: /var/log/ganesha dest: logs/