Skip to content

Create a new test for Ansible "lint" #631

Description

@comps

This would be similar to syntax-check - both generated and shipped playbooks - but run ansible-lint instead, which should perform more thorough testing.

Example on a Fedora without the collections installed:

$ ansible-lint ansible/rhel9-playbook-ism_o.yml 
WARNING  Listing 1 violation(s) that are fatal
syntax-check[unknown-module]: couldn't resolve module/action 'community.general.ini_file'. This often indicates a misspelling, missing collection, or incorrect module path.
ansible/rhel9-playbook-ism_o.yml:1401:5


# Rule Violation Summary

  1 syntax-check profile:min tags:core,unskippable

Failed: 1 failure(s), 0 warning(s) in 1 files processed of 1 encountered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions