Monty Taylor | 0d254d5 | 2017-08-26 13:26:29 -0500 | [diff] [blame^] | 1 | - 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 | ||||
26 | - ara-output |