]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
builder.yml: Do not recursively chown everything
authorDavid Galloway <david.galloway@ibm.com>
Fri, 19 Dec 2025 17:30:04 +0000 (12:30 -0500)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 30 Apr 2026 18:25:02 +0000 (14:25 -0400)
`chown`ing the podman storage directory is problematic when using rootless podman

Signed-off-by: David Galloway <david.galloway@ibm.com>
ansible/examples/builder.yml

index b9425876c70d7c7f42e9f3267bcd53cdc7acb8f6..e2b7cf9a79fddfffc3c423d7068f4b76e481be92 100644 (file)
       become_user: "{{ jenkins_user }}"
       when: ansible_os_family == "Suse"
 
-    - name: Ensure the home dir has the right owner permissions
-      command: "sudo chown -R {{ jenkins_user }}:{{ jenkins_user }} /home/{{ jenkins_user}}"
+    # Do NOT try to chown the podman storage dirs.  This breaks all subsequent builds.
+    - name: Ensure the build dir has the right owner permissions
+      become: true
+      ansible.builtin.file:
+        path: "/home/{{ jenkins_user }}/build"
+        owner: "{{ jenkins_user }}"
+        group: "{{ jenkins_user }}"
+        recurse: true
       tags: chown
 
     - name: Set system locale (systemd)