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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user