Skip to content

Stop tracking .ansible/ runtime state - #4

Merged
nv0o-hrv merged 1 commit into
mainfrom
chore/untrack-ansible-lock
Oct 29, 2026
Merged

nv0o-hrv merged 1 commit into
mainfrom
chore/untrack-ansible-lock

Conversation

@IvanGirderboot

Copy link
Copy Markdown
Collaborator

What changed

  • Removes .ansible/.lock from the index (git rm --cached).
  • Adds .ansible/ to the "Ansible local state" section of .gitignore.

Why

0aa2ff3 accidentally committed .ansible/.lock. It's 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, 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 — passed
  • yamllint . — not affected by this change (only .gitignore and an empty file changed)
  • ansible-lint — exit 0, and the working tree stays clean afterwards
  • Relevant playbook(s) pass ansible-playbook --syntax-check — N/A, no playbook changes
  • A second Ansible run was checked for unexpected changes when live hardware/software was exercised — N/A

Tested hardware/OS and commands used: repository checks only, on a Linux (WSL2) contributor checkout; git check-ignore -v .ansible/.lock confirms 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

  • Public variable changes are reflected in examples/docs and docs/variables.md is regenerated — N/A
  • No real credentials, private inventory, event-only secrets, or sensitive artifacts are included
  • Upstream-derived code/configuration retains required attribution and licensing information — N/A

🤖 Generated with Claude Code

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>
@nv0o-hrv
nv0o-hrv merged commit a196458 into main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants