zuul/playbooks/zuul-stream/post.yaml
Monty Taylor fb4ba8cd5b
Move ara output generation to post playbook
When there are issues, we hit POST FAILURE because ara generate gets
skipped. Move it.

Change-Id: Ib54f78c548999ed330d44e77ecbfc90944fec459
2017-09-03 18:11:41 -05:00

26 lines
594 B
YAML

- hosts: controller
tasks:
- set_fact:
output_dir: "{{ zuul.executor.log_root }}/stream-files"
- name: Make log subdir
file:
path: "{{ output_dir }}"
state: directory
delegate_to: localhost
- name: Rename job-output.txt
command: mv job-output.txt stream-job-output.txt
- name: Fetch files
synchronize:
src: "{{ ansible_user_dir }}/{{ item }}"
dest: "{{ output_dir }}"
mode: pull
with_items:
- logging.json
- ansible.cfg
- stream-job-output.txt
- job-output.json