From d77d213d8950a4f701cb4c41c827e08405791e58 Mon Sep 17 00:00:00 2001 From: Hermes Agent service account Date: Sun, 7 Jun 2026 17:10:38 -0500 Subject: [PATCH] fix(semaphore): add ANSIBLE_COLLECTIONS_PATH to default environment Semaphore runs ansible-playbook from the repo root, so ansible.cfg in ansible/ is never loaded. The env var is the reliable path. Also persists the setting in group_vars so semaphore_configure re-runs don't regress it. --- ansible/group_vars/all/semaphore.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/group_vars/all/semaphore.yml b/ansible/group_vars/all/semaphore.yml index 2c3241f..20aeef0 100644 --- a/ansible/group_vars/all/semaphore.yml +++ b/ansible/group_vars/all/semaphore.yml @@ -104,6 +104,9 @@ semaphore_config: # from the playbook's directory as I first assumed). Path is # therefore relative to repo root, not playbook dir. ANSIBLE_ROLES_PATH: "ansible/roles" + # Collections are installed by the semaphore role into a host-side + # directory bind-mounted into the container at this path. + ANSIBLE_COLLECTIONS_PATH: "/opt/ansible-collections" templates: - name: "day0_linux_baseline"