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.
Added by Mike DePaulo almost 4 years ago
Added by Mike DePaulo almost 4 years ago
Revision 0b75abca | View on GitHub
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
Updated by Anonymous almost 4 years ago
- Status changed from NEW to MODIFIED
Applied in changeset ansible-pulp|0b75abca7358094f1c9d4ef1ccfed7dd2fd2ce02.
Updated by ipanova@redhat.com over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
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