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