fix(semaphore/collections): set collections dir owner to semaphore container uid (1001)
Host dir was owned by root (0755), blocking writes from uid=1001 inside the container. Set owner to semaphore_container_uid=1001 so podman exec can write collections into the bind-mount.
This commit is contained in:
@@ -83,6 +83,11 @@ semaphore_quadlet_dir: /etc/containers/systemd
|
||||
# container restarts and rebuilds.
|
||||
semaphore_collections_dir: /opt/semaphore/ansible-collections
|
||||
|
||||
# UID of the semaphore user inside the container (uid=1001).
|
||||
# The host-side collections directory must be owned by this UID so the
|
||||
# container process can write collections into the bind-mount.
|
||||
semaphore_container_uid: 1001
|
||||
|
||||
semaphore_ansible_collections:
|
||||
- name: containers.podman
|
||||
version: ">=1.10.0"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ semaphore_collections_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
owner: "{{ semaphore_container_uid }}"
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user