Skip to content
Snippets Groups Projects
Unverified Commit 66ee13a8 authored by SuperQ's avatar SuperQ
Browse files

Fix role search path


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

Signed-off-by: default avatarSuperQ <superq@gmail.com>
parent dc266fd1
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ jobs: ...@@ -15,7 +15,7 @@ jobs:
steps: steps:
- checkout - checkout
- run: pip install ansible ansible-lint yamllint flake8 - 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: ansible-lint
- run: yamllint . - run: yamllint .
- run: flake8 - run: flake8
...@@ -28,7 +28,7 @@ jobs: ...@@ -28,7 +28,7 @@ jobs:
steps: steps:
- checkout - checkout
- setup_remote_docker - 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 "ansible~=<<parameters.ansible >>.0"
- run: pip install -r test-requirements.txt - run: pip install -r test-requirements.txt
- run: molecule test -s default --destroy always - run: molecule test -s default --destroy always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment