From 84e30c8ee2dc521c06772ebd848d62fb6aebc5ea Mon Sep 17 00:00:00 2001 From: Hermes Agent service account Date: Sun, 7 Jun 2026 16:48:06 -0500 Subject: [PATCH] fix(semaphore/collections): remove :ro from bind-mount, fix ANSIBLE_COLLECTIONS_PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed :ro from volume mount — ansible-galaxy writes via podman exec into the container, so the mount must be writable during role runs - Fixed deprecated ANSIBLE_COLLECTIONS_PATHS -> ANSIBLE_COLLECTIONS_PATH --- ansible/roles/semaphore/templates/semaphore.container.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/semaphore/templates/semaphore.container.j2 b/ansible/roles/semaphore/templates/semaphore.container.j2 index db23e18..c73e65f 100644 --- a/ansible/roles/semaphore/templates/semaphore.container.j2 +++ b/ansible/roles/semaphore/templates/semaphore.container.j2 @@ -18,9 +18,9 @@ PublishPort={{ semaphore_listen_address }}:{{ semaphore_listen_port }}:3000 Volume={{ semaphore_data_volume }}:/var/lib/semaphore:Z # Ansible collections — host-side dir populated by the semaphore role. -# Bind-mounted to a neutral path; ANSIBLE_COLLECTIONS_PATHS tells -# ansible-galaxy where to find them without touching ~/.ansible/. -Volume={{ semaphore_collections_dir }}:/opt/ansible-collections:Z,ro +# Bind-mounted to a neutral path; ANSIBLE_COLLECTIONS_PATH tells +# Ansible where to find them without touching ~/.ansible/. +Volume={{ semaphore_collections_dir }}:/opt/ansible-collections:Z # Database — points at the postgres container on the user-defined network Environment=SEMAPHORE_DB_DIALECT=postgres @@ -53,7 +53,7 @@ Environment=SEMAPHORE_WEB_ROOT={{ semaphore_web_url }} Environment=TZ=America/Chicago # Tell Ansible where to find collections installed by the role -Environment=ANSIBLE_COLLECTIONS_PATHS=/opt/ansible-collections +Environment=ANSIBLE_COLLECTIONS_PATH=/opt/ansible-collections [Service] Restart=always