diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-05-24 15:17:04 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-05-24 19:41:24 +0200 |
| commit | 5685683cbf7c211b08971755dbd647f3a52f8a50 (patch) | |
| tree | fa9b5c287f56aaede4ea7a1c475d2555c5ac4ee2 /.ansible-lint | |
| parent | b892f1d7262b36e2ba895768272779571c613adf (diff) | |
| download | ansible-role-borgbackup-5685683cbf7c211b08971755dbd647f3a52f8a50.tar.gz ansible-role-borgbackup-5685683cbf7c211b08971755dbd647f3a52f8a50.zip | |
Add ansible-lint configuration
The configuration is still compliant with the current source but will be
enforced from now on.
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
Diffstat (limited to '.ansible-lint')
| -rw-r--r-- | .ansible-lint | 77 |
1 files changed, 72 insertions, 5 deletions
diff --git a/.ansible-lint b/.ansible-lint index fbaa64a..2e09147 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,13 +1,80 @@ +# https://ansible-lint.readthedocs.io --- exclude_paths: [] use_default_rules: true enable_list: - - fqcn-builtins + # Ansible `min` profile + - internal-error + - load-failure + - parser-error + - syntax-check + + # Ansible `basic` profile + - command-instead-of-module + - command-instead-of-shell + - deprecated-bare-vars + - deprecated-local-action + - deprecated-module + - inline-env-var + - key-order + - literal-compare + - jinja + - no-free-form + - no-jinja-when + - no-tabs + - partial-become + - playbook-extension + - role-name + - schema + - name + - var-naming - yaml - - syntax-check[specific] - - name[missing] -skip_list: - - yaml[line-length] + # Ansible `moderate` profile + - name[template] + - name[imperative] + - name[casing] + - spell-var-name + + # Ansible `safety` profile + - avoid-implicit + - latest + - package-latest + - risky-file-permissions + - risky-octal + - risky-shell-pipe + + # Ansible `shared` profile + - galaxy + - ignore-errors + - layout + - meta-incorrect + - meta-no-tags + - meta-video-links + - meta-version + - meta-runtime + - no-changed-when + - no-handler + - no-relative-paths + - max-block-depth + - max-tasks + - unsafe-loop + + # Ansible `production` profile + - avoid-dot-notation + - sanity + - fqcn + - import-task-no-when + - meta-no-dependencies + - single-entry-point + - use-loop + + # Custom rules + - args + - empty-string-compare + - fqcn-builtins + - loop-var-prefix + - no-log-password + - no-same-owner |