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'.
This commit is contained in:
Hermes Agent service account
2026-05-29 23:11:29 -05:00
parent b6a4ad6816
commit dcb764eca7

View File

@@ -100,11 +100,10 @@ semaphore_config:
env: env:
ANSIBLE_HOST_KEY_CHECKING: "False" ANSIBLE_HOST_KEY_CHECKING: "False"
ANSIBLE_FORCE_COLOR: "True" ANSIBLE_FORCE_COLOR: "True"
# Semaphore runs ansible-playbook from the playbook's directory # Semaphore runs ansible-playbook from the cloned REPO ROOT (not
# (ansible/playbooks/), which doesn't pick up ansible.cfg from # from the playbook's directory as I first assumed). Path is
# the parent ansible/ dir. Point roles_path at the canonical # therefore relative to repo root, not playbook dir.
# location relative to that working directory. ANSIBLE_ROLES_PATH: "ansible/roles"
ANSIBLE_ROLES_PATH: "../roles"
templates: templates:
- name: "day0_linux_baseline" - name: "day0_linux_baseline"