Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to detect molecule base.yml configs #1374

Merged
merged 1 commit into from Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ansiblelint/config.py
Expand Up @@ -26,7 +26,7 @@
{
"requirements": "**/molecule/*/collections.{yaml,yml}"
}, # molecule old collection requirements (v1), ansible 2.8 only
{"yaml": "**/molecule/*/molecule.{yaml,yml}"}, # molecule config
{"yaml": "**/molecule/*/{base,molecule}.{yaml,yml}"}, # molecule config
{"playbook": "**/molecule/*/*.{yaml,yml}"}, # molecule playbooks
{"yaml": "**/*.{yaml,yml}"},
{"yaml": "**/.*.{yaml,yml}"},
Expand Down
1 change: 1 addition & 0 deletions test/TestUtils.py
Expand Up @@ -340,6 +340,7 @@ def test_is_playbook():
("playbooks/roles/foo.yml", "yaml"),
# the only yml file that is not a playbook inside molecule/ folders
(".config/molecule/config.yml", "yaml"), # molecule shared config
("roles/foo/molecule/scen1/base.yml", "yaml"), # molecule scenario base config
("roles/foo/molecule/scen1/molecule.yml", "yaml"), # molecule scenario config
("roles/foo/molecule/scen2/foobar.yml", "playbook"), # custom playbook name
("roles/foo/molecule/scen3/converge.yml", "playbook"), # common playbook name
Expand Down