acfd0f337e
Change-Id: I087286f66f21ba8960a948b8a6fcf4ea5261c6cf
29 lines
759 B
YAML
29 lines
759 B
YAML
- 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/
|