From a948894fa3f36e784ad810185cfd640b00685c36 Mon Sep 17 00:00:00 2001 From: Matt Crees Date: Thu, 12 Sep 2024 16:47:42 +0100 Subject: [PATCH] Include internal Kayobe roles/collections in PATHs Allows us to use these roles in hooks, e.g. pre host configures --- docker/kayobe/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/kayobe/Dockerfile b/docker/kayobe/Dockerfile index 0bda102..95593ce 100644 --- a/docker/kayobe/Dockerfile +++ b/docker/kayobe/Dockerfile @@ -93,5 +93,5 @@ RUN --mount=type=ssh,uid=1000 --mount=type=tmpfs,target=/tmp/src --mount=type=bi # Symlinking to /src would create a link within the empty directory RUN sudo rmdir /src || true -ENV ANSIBLE_ROLES_PATH="/stack/.ansible/kayobe-automation-roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles" -ENV ANSIBLE_COLLECTIONS_PATH="/stack/.ansible/kayobe-automation-collections:~/.ansible/collections:/usr/share/ansible/collections" +ENV ANSIBLE_ROLES_PATH="/stack/.ansible/kayobe-automation-roles:/stack/kayobe-automation-env/src/kayobe/ansible/roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles" +ENV ANSIBLE_COLLECTIONS_PATH="/stack/.ansible/kayobe-automation-collections:/stack/kayobe-automation-env/src/kayobe/ansible/collections:~/.ansible/collections:/usr/share/ansible/collections"