Browse code

Ensure that the zuul home can be traversed

The default permissions for the zuul home directory
are not the same in the various distributions.
As /home/zuul contains the sources, a 700 default may be
problematic when accessing those files, so make sure
that the executable permissions are set.

Closes-Bug: 1846251
Change-Id: Ic9769e56274d7205844b86d3b5200a6415e4acad

Luigi Toscano authored on 2019/10/02 03:14:22
Showing 1 changed files
... ...
@@ -1,5 +1,12 @@
1 1
 - hosts: all
2 2
   pre_tasks:
3
+    - name: Fix the permissions of the zuul home directory
4
+      # Make sure that the zuul home can be traversed,
5
+      # so that all users can access the sources placed there.
6
+      # Some distributions create it with 700 by default.
7
+      file:
8
+        path: "{{ ansible_user_dir }}"
9
+        mode: a+x
3 10
     - name: Gather minimum local MTU
4 11
       set_fact:
5 12
         local_mtu: >