From b6a4ad681661da914a4f33f857f190c211fba5ba Mon Sep 17 00:00:00 2001 From: Hermes Agent service account Date: Fri, 29 May 2026 23:08:42 -0500 Subject: [PATCH] fix(semaphore): set ANSIBLE_ROLES_PATH in default env Semaphore runs ansible-playbook from the playbook's directory, not from ansible/ where ansible.cfg lives. Roles aren't found at runtime: 'role linux-baseline was not found'. Set ANSIBLE_ROLES_PATH=../roles in the default environment so the search picks up ansible/roles/ relative to the playbook directory. --- ansible/group_vars/all/semaphore.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/group_vars/all/semaphore.yml b/ansible/group_vars/all/semaphore.yml index 02e64bd..22d4b62 100644 --- a/ansible/group_vars/all/semaphore.yml +++ b/ansible/group_vars/all/semaphore.yml @@ -100,6 +100,11 @@ semaphore_config: env: ANSIBLE_HOST_KEY_CHECKING: "False" ANSIBLE_FORCE_COLOR: "True" + # Semaphore runs ansible-playbook from the playbook's directory + # (ansible/playbooks/), which doesn't pick up ansible.cfg from + # the parent ansible/ dir. Point roles_path at the canonical + # location relative to that working directory. + ANSIBLE_ROLES_PATH: "../roles" templates: - name: "day0_linux_baseline"