blob: 2c717a82eaaa2d565a871e931c3284bd205fa519 [file] [log] [blame]
Monty Taylor0d254d52017-08-26 13:26:29 -05001- hosts: controller
2 tasks:
3
4 - set_fact:
5 output_dir: "{{ zuul.executor.log_root }}/stream-files"
6
7 - name: Make log subdir
8 file:
9 path: "{{ output_dir }}"
10 state: directory
11 delegate_to: localhost
12
13 - name: Rename job-output.txt
14 command: mv job-output.txt stream-job-output.txt
15
16 - name: Fetch files
17 synchronize:
18 src: "{{ ansible_user_dir }}/{{ item }}"
19 dest: "{{ output_dir }}"
20 mode: pull
21 with_items:
22 - logging.json
23 - ansible.cfg
24 - stream-job-output.txt
25 - job-output.json