Repository navigation
Stop tracking .ansible/ runtime state - #4
Merged
Merged
Conversation
0aa2ff3 accidentally committed .ansible/.lock, the empty lock file that ansible-core and ansible-lint create in their per-project .ansible/ working directory. Running ansible-lint removes and recreates it, which leaves a tracked-file change in every contributor checkout. Untrack it and ignore the whole directory, which also holds locally installed collections, modules, and roles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
.ansible/.lockfrom the index (git rm --cached)..ansible/to the "Ansible local state" section of.gitignore.Why
0aa2ff3accidentally committed.ansible/.lock. It's the empty lock file that ansible-core and ansible-lint create in their per-project.ansible/working directory. Runningansible-lintremoves and recreates it, so every contributor checkout shows a tracked-file change after a normal pre-submit lint. The rest of that directory (collections/,modules/,roles/) is also local runtime state and shouldn't be committed.Validation
python3 scripts/qa.py— passedyamllint .— not affected by this change (only.gitignoreand an empty file changed)ansible-lint— exit 0, and the working tree stays clean afterwardsansible-playbook --syntax-check— N/A, no playbook changesTested hardware/OS and commands used: repository checks only, on a Linux (WSL2) contributor checkout;
git check-ignore -v .ansible/.lockconfirms the new rule matches.Release/user impact
None. Existing checkouts keep their local
.ansible/.lock; after pulling, git just stops tracking it.Documentation and secrets
docs/variables.mdis regenerated — N/A🤖 Generated with Claude Code