From fe6edbabdb7f3fcf62c823f582a53843286bd80d Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Tue, 17 Jan 2023 11:20:10 +0100 Subject: [PATCH] .ansible-lint: Deactivate experimental and name[template] tests The experimental tests is running several additional tests like for example to check module arg values. It fails everytime a variable is used to pass the value in. Examples: - playbooks/topology/add-topologysegments.yml:15: args[module]: value of suffix must be one of: domain, ca, domain+ca, got: {{ item.suffix }} - tests/host/test_host.yml:21: args[module]: value of ipaapi_context must be one of: server, client, got: {{ ipa_context | default(omit) }} The name template test is failing for every template use inside of a name. This is forcing to have only generic names and nothing specific in the log anymore. These two tests have been deactivated to have less overflow in the ansible-lint output. --- .ansible-lint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ansible-lint b/.ansible-lint index 3fde5995..abb18e92 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -33,6 +33,8 @@ skip_list: - '305' # Use shell only when shell functionality is required - '306' # risky-shell-pipe - yaml # yamllint should be executed separately. + - experimental # Do not run any experimental tests + - name[template] # Allow Jinja templating inside task names use_default_rules: true -- GitLab