You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In jenkins log, it clearly shows both roles were installed correctly.
[Docker] Executing command on container - extracting openjdk to /tmp/kitchen/roles/openjdk
- extracting openjdk to /home/kitchen/.ansible/roles/openjdk
- openjdk was installed successfully - extracting postgresql to /tmp/kitchen/roles/postgresql
- extracting postgresql to /home/kitchen/.ansible/roles/postgresql
- postgresql was installed successfully
However, job failed when running the test playbook with role not found in the said paths.
ERROR! the role 'openjdk' was not found in /tmp/kitchen/roles:/tmp/kitchen/roles:/tmp/kitchen
The error appears to be in '/tmp/kitchen/default.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- role: openjdk
^ here
The text was updated successfully, but these errors were encountered:
luckeyca
changed the title
dependency roles in requirements.yml installed successfully, but not found.
dependency roles in requirements.yml installed successfully, but error role not found when running test playbook.
Mar 6, 2020
Issue related to https://github.com/neillturner/kitchen-ansible provisioner, but as I can see from your log output you have malformed playbook 'default.yml', roles should be defined like this:
problem description: in kitchen.yml, requirement.yml was properly defined with dependency roles.
requirements.yml
src: git+https://INTERNAL_URL/openjdk.git
scm: git
src: git+https://INTERNAL_URL/postgresql.git
scm: git
In jenkins log, it clearly shows both roles were installed correctly.
[Docker] Executing command on container
- extracting openjdk to /tmp/kitchen/roles/openjdk
- extracting openjdk to /home/kitchen/.ansible/roles/openjdk
- openjdk was installed successfully
- extracting postgresql to /tmp/kitchen/roles/postgresql
- extracting postgresql to /home/kitchen/.ansible/roles/postgresql
- postgresql was installed successfully
However, job failed when running the test playbook with role not found in the said paths.
ERROR! the role 'openjdk' was not found in /tmp/kitchen/roles:/tmp/kitchen/roles:/tmp/kitchen
The text was updated successfully, but these errors were encountered: