Actions
Issue #8234
closedansible-lint 5.0.0 fails on checking requirements.yml
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
CI/CD
Sprint:
Quarter:
Description
It was released today.
Snippet from pulp_installer CI that is failing:
Running ansible-galaxy collection install -p .cache/collections -vr requirements.yml
syntax-check: A playbook must be a list of plays, got a <class 'ansible.parsing.yaml.objects.AnsibleMapping'> instead
Warning: cule/packages-dynamic/requirements.yml:2:1 [WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
ERROR! A playbook must be a list of plays, got a <class 'ansible.parsing.yaml.objects.AnsibleMapping'> instead
It looks like it is parsing it like a playbook.
Actions
Problem: ansible-lint 5.0.0 fails on requirements.yml
It looks like it is considering it to be a playbook rather than a requirements.yml, and parsing it as such.
Solution: Do not check it under the molecule directories
fixes: #8234