From 66ee13a8b638ee9a938ec1470851ea29e111b00f Mon Sep 17 00:00:00 2001
From: SuperQ <superq@gmail.com>
Date: Mon, 9 Aug 2021 14:19:17 +0200
Subject: [PATCH] Fix role search path

Use /home/circleci/.ansible/roles to ensure the role is in the search path.

Signed-off-by: SuperQ <superq@gmail.com>
---
 .circleci/config.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index d9115e8..c7391e8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -15,7 +15,7 @@ jobs:
     steps:
       - checkout
       - run: pip install ansible ansible-lint yamllint flake8
-      - run: mkdir -p .cache/roles && ln -s ../.. .cache/roles/${CIRCLE_PROJECT_REPONAME}
+      - run: mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME}
       - run: ansible-lint
       - run: yamllint .
       - run: flake8
@@ -28,7 +28,7 @@ jobs:
     steps:
       - checkout
       - setup_remote_docker
-      - run: ln -s ~/project ~/${CIRCLE_PROJECT_REPONAME}
+      - run: mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME}
       - run: pip install "ansible~=<<parameters.ansible >>.0"
       - run: pip install -r test-requirements.txt
       - run: molecule test -s default --destroy always
-- 
GitLab