Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency roles in requirements.yml installed successfully, but error role not found when running test playbook. #364

Open
luckeyca opened this issue Mar 6, 2020 · 1 comment

Comments

@luckeyca
Copy link

luckeyca commented Mar 6, 2020

problem description: in kitchen.yml, requirement.yml was properly defined with dependency roles.

requirements.yml

  • name: openjdk
    src: git+https://INTERNAL_URL/openjdk.git
    scm: git
  • name: postgresql
    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 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
@luckeyca 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
@axmetishe
Copy link

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:

roles:
  - openjdk     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants