Skip to content

Commit a3c5aa7

Browse files
mcdonnnjjsf9k
andcommitted
Add an ansible-lint configuration file
This file is copied from cisagov/skeleton-ansible-role#85 and tweaked to pass pre-commit. See here for for a list of the elements that can exist in this file: https://ansible-lint.readthedocs.io/en/latest/configuring.html Co-authored-by: Shane Frasier <[email protected]>
1 parent b78b832 commit a3c5aa7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.ansible-lint

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# See https://ansible-lint.readthedocs.io/en/latest/configuring.html
3+
# for a list of the configuration elements that can exist in this
4+
# file.
5+
enable_list:
6+
# Useful checks that one must opt-into. See here for more details:
7+
# https://ansible-lint.readthedocs.io/en/latest/rules.html
8+
- fcqn-builtins
9+
- no-log-password
10+
- no-same-owner
11+
exclude_paths:
12+
# This exclusion is implicit, unless exclude_paths is defined
13+
- .cache
14+
# Seems wise to ignore this too
15+
- .github
16+
# ansible-lint doesn't like the role name in this playbook, but it's
17+
# what molecule requires
18+
- molecule/default/converge.yml
19+
# These two are Molecule configuration files, not Ansible playbooks
20+
- molecule/default/molecule-no-systemd.yml
21+
- molecule/default/molecule-with-systemd.yml
22+
use_default_rules: true

0 commit comments

Comments
 (0)