forked from debops/debops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ansible-lint
43 lines (36 loc) · 1.47 KB
/
.ansible-lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# Copyright (C) 2021-2023 Maciej Delmanowski <[email protected]>
# Copyright (C) 2021-2023 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-or-later
# Configuration file for ansible-lint
# Ignore these paths during auto-detection
exclude_paths:
- 'docs/ansible/roles/index.rst'
- '.gitlab-ci.yml'
# Add virtual roles for playbook examples
mock_roles:
- 'application'
# Enable additional, experimental rules
# Ref: https://github.com/ansible-community/ansible-lint/blob/main/.ansible-lint#L41-L49
enable_list:
- 'fqcn-builtins'
- 'no-log-password'
- 'no-same-owner'
# List of rules currently ignored in DebOps repository
skip_list:
# The 'collections' keyword in playbooks is currently needed to ensure that
# FQCN role lookup works across multiple Ansible Collections. Therefore let's
# skip warnings for it for now.
#
# This can be removed when situation with publishing DebOps Collection on
# Ansible Galaxy in multiple tarballs is resolved.
- 'fqcn[keyword]'
# This check warns that a 'run_once' keyword will not work correctly on task
# level in playbooks with "free" strategy, but ansible-lint doesn't take the
# strategy of a given play into account, so the check is moot. A solution is
# to ignore the check on the task level.
# Ref: https://github.com/ansible/ansible-lint/issues/2815
#
# This tag is not correctly detected on the task level using "noqa" comment,
# so instead it's ignored globally for now.
- 'run-once[task]'