-
SummaryAnsible Lint uses the environment variables On a related note, these options can also be configured in Issue Type
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I converted this into a discussion because is not really a bug, at least not yet. Ansible lint does not care about ansible.cfg and it should never do, because that's Ansible job to look at. When Ansible runs, it loads both config file and environment variables and it is well documented that presence of environment variables does override values from config file. If you define these paths inside your ansible.cfg file it would be up to you to find a solution, likely you will have to also define same value as environment variables, so Ansible can still make use of them. Keep in mind that this issue mostly unrelated to the linter as if you manage to make Our linter injects additional temp directories to some of these variables by appending to them and does this only when is needed: requirements.yml exists or mocking options are used. It does try to help ansible find the potentially missing bits in a way that is least intrusive for the Ansible execution environment. For the moment I do not see any bug here and clear the report is incomplete as it does not even mention version of Ansible used, linter or pointing to a basic repository where the issue can be reproduced. I am sure that there are still bugs around but we need more info to identify them. I would be more than happy to welcome improvement pull-requests, even for docs as I know that the injection of those variables is not really documented, we only display what we do but not really documenting why. |
Beta Was this translation helpful? Give feedback.
-
If ansible syntax check is passing outside linter but not inside it, is a linter bug we need to fix. |
Beta Was this translation helpful? Give feedback.
If ansible syntax check is passing outside linter but not inside it, is a linter bug we need to fix.