summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-02-05 09:32:02 -0800
committerJames E. Blair <jeblair@redhat.com>2019-02-05 09:32:02 -0800
commitdd8c88354e655df35a55d1a3015c7d0f98949531 (patch)
tree95fabcb02a8e55aa5cb3699f297fb601609b4556
parentbc5372817b5802a65fe74aa3cdba51013732eb1c (diff)
Fix ownership change in stage-output
If the stage_dir/logs directory was a symlink, Ansible would refuse to perform the chmod. However, if we tell Ansible that it is a directory, it's fine. This (perhaps curiously) does not tell Ansible to turn the symlink into a directory. It just tells it that everything is okay. Change-Id: Idbd78b97b95ce50b23dda8f384e32359d31013e3
Notes
Notes (review): Code-Review+2: Jens Harbott (frickler) <j.harbott@x-ion.de> Code-Review+2: Ian Wienand <iwienand@redhat.com> Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Andreas Jaeger <jaegerandi@gmail.com> Workflow+1: Andreas Jaeger <jaegerandi@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 05 Feb 2019 19:58:35 +0000 Reviewed-on: https://review.openstack.org/634992 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/stage-output/tasks/main.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/stage-output/tasks/main.yaml b/roles/stage-output/tasks/main.yaml
index 5d88907..324649a 100644
--- a/roles/stage-output/tasks/main.yaml
+++ b/roles/stage-output/tasks/main.yaml
@@ -65,6 +65,7 @@
65 65
66- name: Make all log files readable 66- name: Make all log files readable
67 file: 67 file:
68 state: directory
68 dest: "{{ stage_dir }}/logs" 69 dest: "{{ stage_dir }}/logs"
69 mode: u=rwX,g=rX,o=rX 70 mode: u=rwX,g=rX,o=rX
70 recurse: yes 71 recurse: yes