From dcb764eca7f4653cd5659ffd2bf6db20fcf07e6b Mon Sep 17 00:00:00 2001 From: Hermes Agent service account Date: Fri, 29 May 2026 23:11:29 -0500 Subject: [PATCH] fix(semaphore): ANSIBLE_ROLES_PATH is relative to repo root not playbook dir Semaphore runs ansible-playbook from the cloned repo root, not from the playbook directory. The previous value '../roles' resolved outside the repo. Correct path is 'ansible/roles'. --- ansible/group_vars/all/semaphore.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ansible/group_vars/all/semaphore.yml b/ansible/group_vars/all/semaphore.yml index 22d4b62..2c3241f 100644 --- a/ansible/group_vars/all/semaphore.yml +++ b/ansible/group_vars/all/semaphore.yml @@ -100,11 +100,10 @@ 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" + # Semaphore runs ansible-playbook from the cloned REPO ROOT (not + # from the playbook's directory as I first assumed). Path is + # therefore relative to repo root, not playbook dir. + ANSIBLE_ROLES_PATH: "ansible/roles" templates: - name: "day0_linux_baseline"