Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible plugin lint-skip parameters #380

Open
lashomb opened this issue Oct 3, 2023 · 1 comment · May be fixed by go-vela/vela-ansible#49
Open

Ansible plugin lint-skip parameters #380

lashomb opened this issue Oct 3, 2023 · 1 comment · May be fixed by go-vela/vela-ansible#49

Comments

@lashomb
Copy link

lashomb commented Oct 3, 2023

The example docs show lint-skip being used with id numbers, that I couldn't find anywhere, even after looking at the source. I tried using names, ie: no-changed-when, and that worked. Unsure if numeric ids are still available for this and I've yet to discover them, or if names should be used instead.

    parameters:
      action: lint
      playbook: "ansible/playbook.yml"
      lint_skip:
        - no-changed-when
@wass3r
Copy link
Collaborator

wass3r commented Feb 29, 2024

you're correct, based on ansible-lints own docs it should be the id/tag: https://ansible.readthedocs.io/projects/lint/usage/#using-commands

-x SKIP_LIST, --skip-list SKIP_LIST
                        only check rules whose id/tags do not match these values.             e.g: --skip-list=name,run-once

we're just passing the value through to that flag.

@wass3r wass3r linked a pull request Feb 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants