Project

Profile

Help

Issue #8234

closed

ansible-lint 5.0.0 fails on checking requirements.yml

Added by mdepaulo@redhat.com almost 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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

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

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

Actions #1

Updated by Anonymous almost 4 years ago

  • Status changed from NEW to MODIFIED
Actions #2

Updated by ipanova@redhat.com almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF