Skip to content
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

Fail if old ANSIBLE_COLLECTIONS_PATHS is detected #449

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Jan 22, 2025

Make presence of outdated ANSIBLE_COLLECTIONS_PATHS (double plural) variable a runtime error, asking user to either remove it or replace it with ANSIBLE_COLLECTION_PATHS.

Removes config.ansible_collections_path method because is no longer needed and it was not used by ansible-lint nor molecule.

This will reduce code complexity in our tools and speed-up migration of outdated configurations. While ansible-core still recognize old one, development tools will no
longer tolerate its presence, as this caused various hard to debug bugs for our users.

Reference: https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
Make presence of ANSIBLE_COLLECTIONS_PATHS variable a runtime error,
asking user to either remove it or replace it with
ANSIBLE_COLLECTION_PATHS.

Removes config.ansible_collections_path method because is no longer
needed and it was not used by ansible-lint nor molecule.
@ssbarnea ssbarnea merged commit 709cea0 into main Jan 22, 2025
30 checks passed
@ssbarnea ssbarnea deleted the major/colpath branch January 22, 2025 16:21
ssbarnea added a commit to ansible/molecule that referenced this pull request Jan 22, 2025

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
ssbarnea added a commit to ansible/molecule that referenced this pull request Jan 22, 2025

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
ssbarnea added a commit to ansible/molecule that referenced this pull request Jan 22, 2025

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
ssbarnea added a commit that referenced this pull request Jan 23, 2025

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
Fixes: #449
ssbarnea added a commit that referenced this pull request Jan 23, 2025

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
Fixes: #449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants