-
Notifications
You must be signed in to change notification settings - Fork 636
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
--offline (or offline: true) does not do, what is said in the docs #2729
Comments
I have a similar issue (also using ansible-core 2.14.0 and the newer ansible-lint 6.9.0), I have downloaded collections to their proper place already AND set the collections_paths in ansible-cfg correctly, there is absolutely no need for ansible-lint to run |
Likely related to #2683 btw |
Same here. I wonder why is
But still in
As listed also in the above referenced issue. |
The Those using ansible-lint in offline mode will have to find a way to install the requirements themselves. |
I'm afraid this is still not working here. I'm running ansible (and ansible-lint) in a container and installing the collections as: ansible-galaxy collection install \
-r requirements.yml \
-p /usr/share/ansible/collections
ansible-galaxy role install \
-r requirements.yml \
-p /usr/share/ansible/roles Then, using a wrapper, execute ansible-lint as: ./ansible-lint.sh --offline --parseable development.yml But it still fails with:
What am I missing? |
Why do we even have an "offline" mode? Why aren't the schemas delivered with the ansible-lint CLI? Requiring access to raw.githubusercontent.com by default seems very dirty IMO...
|
And when setting the
|
I do not see an inconsistency in those messages. It is ignored for the But IMO the major problem here is this: |
fwiw, there were some concerns raised about this before : #2703 (comment)
Sounds weird as it not supposed to run refresh in offline mode. It probably deserves its own bug report imho |
I will also try to answer @erikgb questions:
@apatard is right, do not use existing tickets to file new bugs. That is why I am going to close and lock this issue because the original bug was fixed in 6.9.1 and we should not spam others with reports from various umentioned versions. PS. A hotfix for the offline refresh logic will be make today, I already have it in local testing. |
Issue Type
Ansible and Ansible Lint details
Desired Behavior
Behaviour of parameter --offline (oder equivalently option offline: true) is coherant with documentation:
--offline Disable installation of requirements.yml
Actual Behavior (Bug report only)
What --offline really does, are apparently these two things:
Proposed solution
Thanks.
David
The text was updated successfully, but these errors were encountered: