Skip to content

Commit 4b912fe

Browse files
committed
Update ansible-lint configuration
Instead of excluding molecule configurations for systemd individually we instead direct ansible-lint to process any of these configurations in scenario directories as plain yaml files. This mirrors how ansible-lint handles `molecule.yml` files in scenario directories by default.
1 parent 6a10135 commit 4b912fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.ansible-lint

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ exclude_paths:
1313
- .cache
1414
# Seems wise to ignore this too
1515
- .github
16-
# These two are Molecule configuration files, not Ansible playbooks
17-
- molecule/default/molecule-no-systemd.yml
18-
- molecule/default/molecule-with-systemd.yml
16+
kinds:
17+
# This will force our systemd specific molecule configurations to be treated
18+
# as plain yaml files by ansible-lint. This mirrors the default kind
19+
# configuration in ansible-lint for molecule configurations:
20+
# yaml: "**/molecule/*/{base,molecule}.{yaml,yml}"
21+
- yaml: "**/molecule/*/molecule-{no,with}-systemd.yml"
1922
use_default_rules: true

0 commit comments

Comments
 (0)