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.
pull/432/head
Nicholas McDonnell 3 years ago
parent 6a10135f81
commit 4b912fe7ca
No known key found for this signature in database
GPG Key ID: 7994ADE2A56BE5D1
  1. 9
      .ansible-lint

@ -13,7 +13,10 @@ exclude_paths:
- .cache
# Seems wise to ignore this too
- .github
# These two are Molecule configuration files, not Ansible playbooks
- molecule/default/molecule-no-systemd.yml
- molecule/default/molecule-with-systemd.yml
kinds:
# This will force our systemd specific molecule configurations to be treated
# as plain yaml files by ansible-lint. This mirrors the default kind
# configuration in ansible-lint for molecule configurations:
# yaml: "**/molecule/*/{base,molecule}.{yaml,yml}"
- yaml: "**/molecule/*/molecule-{no,with}-systemd.yml"
use_default_rules: true

Loading…
Cancel
Save