Paul Belanger | 8f89c27 | 2017-02-26 13:27:03 -0500 | [diff] [blame] | 1 | - hosts: all |
| 2 | tasks: |
| 3 | - name: Find tox directories to synchrionize. |
| 4 | find: |
| 5 | file_type: directory |
| 6 | paths: "/home/zuul/workspace/src/{{ zuul.project }}/.tox" |
| 7 | # NOTE(pabelanger): The .tox/log folder is empty, ignore it. |
| 8 | patterns: ^(?!log).*$ |
| 9 | use_regex: yes |
| 10 | register: result |
| 11 | |
| 12 | - name: Collect tox logs. |
| 13 | synchronize: |
| 14 | dest: "{{ zuul.launcher.log_root }}/tox" |
| 15 | mode: pull |
| 16 | src: "{{ item.path }}/log/" |
| 17 | with_items: "{{ result.files }}" |