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
False positive EANSIBLE0014 also flags vars in shell task #275
Comments
What makes these bugs even worse is that there is no way to disable a specific check per command. |
What might be the status of this? I think i can put something into my ignore for this line but i would rather it be fixed... |
When I originally created EANSIBLE0014, I'm sure that using shell vars in the command didn't really work (maybe I have that wrong). Even now, I'm not hugely convinced by the use case - I prefer the use of If you want to ignore issues with |
It seems that
The workaround for me is to actually put a comment as the first statement on shell/command modules. Then ansible-lint is happy |
I am looking forward to see this fixed. |
For consideration, I added PR #477 which would make this rule apply to only ‘command’ and not ‘shell’ |
Issue Type
Ansible and Ansible Lint details
Desired Behaviour
EANSIBLE0014 should validate only command task, not shell.
Actual Behaviour (Bug report only)
When ansible-lint validating playbook with shell tasks with env vars
it fails and complains about Env vars shouldn't be in command
The text was updated successfully, but these errors were encountered: