diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 00000000..bd650004 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,30 @@ +--- +# 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 + - run-once[task] # wtf??? + + # To be checked and maybe fixed: + - ignore-errors + - key-order[task] + - name[casing] + - name[missing] + - name[play] + - name[template] + - no-free-form + - no-handler + - risky-file-permissions + - risky-shell-pipe + - var-naming[no-reserved] + - var-naming[no-role-prefix] + - var-naming[pattern] + - var-naming[read-only] diff --git a/antsibull-nox.toml b/antsibull-nox.toml index d37d52b7..36fd080e 100644 --- a/antsibull-nox.toml +++ b/antsibull-nox.toml @@ -216,6 +216,12 @@ remote = [ ################################################################################################## +[sessions.ansible_lint] +ansible_lint_package = [ + "ansible-lint", + "ansible-compat < 25.8.2", +] + [[sessions.ee_check.execution_environments]] name = "devel-ubi-9" description = "ansible-core devel @ RHEL UBI 9"