Allow stage-output to copy root-owned files

This makes it easier to tell stage-output to copy files such
as syslog from remote nodes.

Change-Id: Ica2397a50de1054f5d5ec81b54ab36fda9bdc333
This commit is contained in:
James E. Blair 2019-01-30 15:38:58 -08:00
parent ee5d385343
commit 2abb8a1302
1 changed files with 8 additions and 0 deletions

View File

@ -59,8 +59,16 @@
# remote_src copy does not work recursively, synchronise is restricted by
# zuul, using command
command: cp -pRL {{ item.source}} {{ stage_dir }}/{{ item.dest }}
become: true
with_items: "{{ all_sources }}"
- name: Make all log files readable
file:
dest: "{{ stage_dir }}/logs"
mode: u=rwX,g=rX,o=rX
recurse: yes
become: yes
- name: Discover log files that match extension_list
find:
paths: "{{ stage_dir }}/logs"