Skip to content

meta-no-dependencies: Disallow use of role run dependency and run in meta/main.yml #2159

Open
@cidrblock

Description

@cidrblock

This is not really necessary in a collection world, the dep can be at the collection level and a task can be used to run the role.

Basically we want to tell people to avoid using dependencies: in meta/main.yml because name is misleading (as these are effective includes and not really declaration of a dependency).

Also this rule need to be implemented after we implement single-entry-point rule.

Reference: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#using-role-dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    AAPAnsible Automation Platformnew ruleA request for a new rule

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions