- hosts: all | |
tasks: | |
- name: Find tox directories to synchrionize. | |
find: | |
file_type: directory | |
paths: "{{ zuul_workspace_root }}/src/{{ zuul.project }}/.tox" | |
# NOTE(pabelanger): The .tox/log folder is empty, ignore it. | |
patterns: ^(?!log).*$ | |
use_regex: yes | |
register: result | |
- name: Collect tox logs. | |
synchronize: | |
dest: "{{ zuul.executor.log_root }}/tox" | |
mode: pull | |
src: "{{ item.path }}/log/" | |
with_items: "{{ result.files }}" |