Skip to content

handle include_role tasks. #22

@gurpalw

Description

@gurpalw

if a role has an include_role like the below:

- name: clone role
  include_role:
    name: git_clone

rolecule fails.

ERROR! the role 'git_clone' was not found in /etc/ansible/roles/regina/tests/roles:/etc/ansible/roles:/etc/ansible/roles/regina/tests

The error appears to be in '/etc/ansible/roles/regina/tasks/main.yml': line 10, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  include_role:
    name: git_clone
          ^ here

these should be mounted in the same way local dependencies in meta/main.yml are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions