Replies: 5 comments 2 replies
-
I could see utility in both the current and proposed locations. Would it be possible to choose on a case-by-case basis? Perhaps |
Beta Was this translation helpful? Give feedback.
-
I don't think automatically installing collections into |
Beta Was this translation helpful? Give feedback.
-
I would like the option to use the first directory set in |
Beta Was this translation helpful? Give feedback.
-
Before When I came back to my code after a year or so, it completely broke as I would strongly urge you not put extra things into the project repo directory, as that has implications for accidentally committing files to source repos, polluting backups with unwanted files, etc. Doing it in a non-transparent way to the user makes the problem even worse. I'm sure something like the symbolic link method could be made more robust and implemented in other way besides a |
Beta Was this translation helpful? Give feedback.
-
I myself like the isolated path a little better, as it does not interfere with the other files. There are also "technical" reasons, e.g. when looking at Gitlab CI. They only allow add directories under the Enabling Gitlab CI runners cache the requirements between pipeline runs will greatly speed those up. Currently one needs to add copy / move commands at the beginning and end of a job ... providing an options to simply have ansible-lint use a folder below the Ansible home would be awesome. |
Beta Was this translation helpful? Give feedback.
-
When running ansible lint in online mode and with the default
isolation: true
, where do you think it should install the requirements mentioned in requirements.yml file?For those that do not know, the implicit isolation mode protects the user from surprises like having his local list of collections or roles from
~/.ansible
accidentally polluted.Also it ensures that working on one project does not affect of working on another project, aka cross-contamination. You can think about isolation mode as "containment", and it is implicit. Users can still disable it if they want.
The big question is what should be the ideal location to pick?
Please note that by
{project_dir}
we mean the folder that contains theansible.cfg
file, and also the CWD from which the linter runs by default. This option has the big advantage that it matches the behavior of ansible-playbook, which is automatically loading roles and collections adjacent to current folder, even if this folder is not mentioned in config file.9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions