From dd8c88354e655df35a55d1a3015c7d0f98949531 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 5 Feb 2019 09:32:02 -0800 Subject: [PATCH] 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 --- roles/stage-output/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/stage-output/tasks/main.yaml b/roles/stage-output/tasks/main.yaml index 5d8890721..324649aa5 100644 --- a/roles/stage-output/tasks/main.yaml +++ b/roles/stage-output/tasks/main.yaml @@ -65,6 +65,7 @@ - name: Make all log files readable file: + state: directory dest: "{{ stage_dir }}/logs" mode: u=rwX,g=rX,o=rX recurse: yes