From fa02c71d8071ec383f80f773fe8b2f6cc332bcbd Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 2 May 2026 20:29:04 +0200 Subject: [PATCH] Try to add ansible-lint to CI. --- .ansible-lint | 36 ++++++++++++++++++++++++++++++++++++ antsibull-nox.toml | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000000..fdd9100a2c --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,36 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + +skip_list: + # Ignore rules that make no sense: + - galaxy[tags] + - galaxy[version-incorrect] + - meta-runtime[unsupported-version] + - no-changed-when + - sanity[cannot-ignore] # some of the rules you cannot ignore actually MUST be ignored, like yamllint:unparsable-with-libyaml + - yaml # we're using yamllint ourselves + - var-naming[no-role-prefix] + + # To be checked and maybe fixed: + - args + - avoid-implicit + - command-instead-of-module + - command-instead-of-shell + - complexity + - fqcn + - galaxy + - ignore-errors + - jinja + - key-order + - latest + - literal-compare + - name + - no-free-form + - no-handler + - package-latest + - risky-file-permissions + - risky-shell-pipe + - schema + - var-naming diff --git a/antsibull-nox.toml b/antsibull-nox.toml index 04355c5be5..05b21bb81b 100644 --- a/antsibull-nox.toml +++ b/antsibull-nox.toml @@ -112,6 +112,8 @@ doc_fragment = "community.general._scaleway.actiongroup_scaleway" [sessions.build_import_check] run_galaxy_importer = true +[sessions.ansible_lint] + [sessions.ansible_test_sanity] include_devel = true