Browse Source

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
changes/69/634069/1
James E. Blair 5 months ago
parent
commit
2abb8a1302
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      roles/stage-output/tasks/main.yaml

+ 8
- 0
roles/stage-output/tasks/main.yaml View File

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

Loading…
Cancel
Save