From 9a75e4f54338a6e250ec694ceff7b593ecf40c94 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Mon, 6 Jan 2025 13:58:35 +0100 Subject: [PATCH] chore: update ansible-lint config --- .ansible-lint | 4 ++++ .ansible-lint-ignore | 9 ++++----- .github/workflows/ansible_lint.yml | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 7a978b20..83aebfd4 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -10,3 +10,7 @@ exclude_paths: skip_list: - role-name - var-naming +warn_list: + - yaml[line-length] + - no-changed-when + - no-handler diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore index 15632148..01d06120 100644 --- a/.ansible-lint-ignore +++ b/.ansible-lint-ignore @@ -4,10 +4,9 @@ # Ignore rules in specific files as follows: # playbooks/transferuser.yml yaml[empty-lines] +playbooks/roles/transferuser/molecule/default/verify.yml risky-shell-pipe +playbooks/roles/stata18/molecule/default/prepare.yml command-instead-of-module +playbooks/roles/stata18/molecule/default/prepare.yml inline-env-var # this is a bug in some versions of ansible-lint + molecule/playbook-aptly/molecule.yml yaml[line-length] # molecule test parameters are long molecule/playbook-reverse_proxy/molecule.yml yaml[line-length] # molecule test parameters are long -molecule/playbook-reverse_proxy/verify.yml yaml[line-length] # URL expectations are too long -playbooks/roles/sshfs_mount/main/tasks.yml yaml[line-length] # fstab options are too long -playbooks/roles/camunda_server/tasks/main.yml yaml[line-length] # XML too long -playbooks/roles/sshfs_mount/tasks/mount.yml yaml[line-length] # mount options too long -playbooks/roles/stata18/molecule/default/prepare.yml command-instead-of-module diff --git a/.github/workflows/ansible_lint.yml b/.github/workflows/ansible_lint.yml index d276f6d4..10641d24 100644 --- a/.github/workflows/ansible_lint.yml +++ b/.github/workflows/ansible_lint.yml @@ -29,4 +29,4 @@ jobs: - name: Run ansible-lint uses: ansible/ansible-lint@main with: - args: "playbooks/" + args: "playbooks ."