Skip to content

Commit

Permalink
Constrain inventory file location (#1635)
Browse files Browse the repository at this point in the history
Address regression introduced by #1631 where a playbook named
`inventory.yml `could wrongly be evaluated as an inventory file.

Related: #1631
  • Loading branch information
ssbarnea committed Jun 18, 2021
1 parent 573f3fc commit ec97e45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ansiblelint/config.py
Expand Up @@ -15,7 +15,7 @@
# Do not sort this list, order matters.
{"jinja2": "**/*.j2"}, # jinja2 templates are not always parsable as something else
{"jinja2": "**/*.j2.*"},
{"inventory": "**/inventory.yml"},
{"inventory": "**/inventory/**.yml"},
{"requirements": "**/meta/requirements.yml"}, # v1 only
# https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html
{"galaxy": "**/galaxy.yml"}, # Galaxy collection meta
Expand Down

0 comments on commit ec97e45

Please sign in to comment.