Skip to content

Commit ec97e45

Browse files
authored
Constrain inventory file location (#1635)
Address regression introduced by #1631 where a playbook named `inventory.yml `could wrongly be evaluated as an inventory file. Related: #1631
1 parent 573f3fc commit ec97e45

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

src/ansiblelint/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Do not sort this list, order matters.
1616
{"jinja2": "**/*.j2"}, # jinja2 templates are not always parsable as something else
1717
{"jinja2": "**/*.j2.*"},
18-
{"inventory": "**/inventory.yml"},
18+
{"inventory": "**/inventory/**.yml"},
1919
{"requirements": "**/meta/requirements.yml"}, # v1 only
2020
# https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html
2121
{"galaxy": "**/galaxy.yml"}, # Galaxy collection meta

0 commit comments

Comments
 (0)