Revert "Revert "Save registry logs""

This reverts commit edfdedbcec.

Change-Id: I5b1adcd7d8887fb6eb7d30319bd62cac47a5faf5
This commit is contained in:
James E. Blair 2019-03-01 18:17:14 -08:00
parent b97b47dcd8
commit 33865f54df
1 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,18 @@
- hosts: localhost
roles:
- push-to-intermediate-registry
- hosts: all
tasks:
- name: Create container log dir
file:
path: "{{ ansible_user_dir }}/zuul-output/logs/docker"
state: directory
- name: Save registry container logs
loop:
- buildset_proxy
- buildset_registry
shell: "docker logs {{ item }} &> {{ ansible_user_dir }}/zuul-output/logs/docker/{{item}}.txt"
args:
executable: /bin/bash