manila/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml
Dmitriy Rabotyagov acfd0f337e Store ganesha logs and configs
Change-Id: I087286f66f21ba8960a948b8a6fcf4ea5261c6cf
2020-01-21 20:35:45 +00:00

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/