Skip to content

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

@luckeyca

Description

@luckeyca

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions