From 5685683cbf7c211b08971755dbd647f3a52f8a50 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Wed, 24 May 2023 15:17:04 +0200 Subject: 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 --- .ansible-lint | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file 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 -- cgit v1.2.3