Browse Source

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
changes/92/634992/1
James E. Blair 6 months ago
parent
commit
dd8c88354e
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      roles/stage-output/tasks/main.yaml

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

@@ -65,6 +65,7 @@
65 65
 
66 66
 - name: Make all log files readable
67 67
   file:
68
+    state: directory
68 69
     dest: "{{ stage_dir }}/logs"
69 70
     mode: u=rwX,g=rX,o=rX
70 71
     recurse: yes

Loading…
Cancel
Save