system-config/playbooks/zuul/run-base-post.yaml
James E. Blair a491f80f6f run-base: exclude __pycache__ from logs
We don't need to copy this back over.

Change-Id: I419c9c80526953177f808ad7b180deba9bf0434e
2018-08-30 11:05:49 -07:00

25 lines
658 B
YAML

- hosts: bridge.openstack.org
tasks:
- name: Register junit.xml file
stat:
path: "{{ zuul.project.src_dir }}/junit.xml"
register: _junit
- name: Collect testinfra logs
synchronize:
dest: "{{ zuul.executor.log_root }}"
mode: pull
src: "{{ zuul.project.src_dir }}/junit.xml"
verify_host: true
when: _junit.stat.exists|bool
- name: Collect ansible configuration
synchronize:
dest: "{{ zuul.executor.log_root }}"
mode: pull
src: "/etc/ansible"
verify_host: true
rsync_opts:
- "--exclude=__pycache__"
ignore_errors: true