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.

Also available in: Atom PDF