You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible-lint installation method: pre-commit installed from source
Desired Behaviour
Running pre-commit should result in ansible-lint using my configuration file that defines various settings.
pre-commit run ansible-lint
Actual Behaviour (Bug report only)
pre-commit launches ansible-lint but it's clear that ansible-lint is not using my configuration file because it's not applying my custom rules. When I instead run ansible-lint explicitly it picks up the configuration file and applies my rules.
ansible-lint site.yml
Below is the pre-commit hook definition in the .pre-commit-config.yaml file.
I tried adding the args option to explicitly define the config file but this does not work and is ignored (has no affect)! Here is my version with the args option:
Actually, I determined the real problem is not with the args. It was caused because I had a vault file also in my staged files. Closing this issue as the real issue is here.
Issue Type
Ansible and Ansible Lint details
Desired Behaviour
Running pre-commit should result in ansible-lint using my configuration file that defines various settings.
Actual Behaviour (Bug report only)
pre-commit launches ansible-lint but it's clear that ansible-lint is not using my configuration file because it's not applying my custom rules. When I instead run
ansible-lint
explicitly it picks up the configuration file and applies my rules.Below is the pre-commit hook definition in the
.pre-commit-config.yaml
file.I tried adding the
args
option to explicitly define the config file but this does not work and is ignored (has no affect)! Here is my version with theargs
option:I have tried different formats for the
args
option and nothing worked.Can someone please fix or advise?
The text was updated successfully, but these errors were encountered: