ansible / ansible-lint

ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you
https://ansible.readthedocs.io/projects/lint/
GNU General Public License v3.0
3.46k stars 656 forks source link

Allow linter to run in a pure offline mode #3816

Closed ssbarnea closed 10 months ago

ssbarnea commented 1 year ago

We need a CLI option that would run linter in a pure offline mode:

ssbarnea commented 1 year ago

@ajinkyau This can be done in multiple steps, a first one would be allow linter to fully disable the calls to ansible-galaxy install, as this affects the lightspeed bot implementation.

ganeshrn commented 1 year ago

In pure offline mode don't throw warnings/error if a collection/plugin/ task file is part of the dependency and not installed in the project. Example warnings and repo https://github.com/anshulbehl/network.bgp/pull/1

SirUli commented 11 months ago

In offline mode it should also not check for the latest version.