Add reproducible Nix dev environment
Replace the Python venv with a Nix devshell pinning ansible-core 2.21.3, ansible-lint, yamllint and a Python with proxmoxer/requests. The Python dependencies share the interpreter that runs ansible, so pve-*.yml plays on implicit localhost can import proxmoxer without inventory changes. The shellHook exports absolute ANSIBLE_CONFIG, ANSIBLE_INVENTORY, ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH, so commands work from the repository root as well as from ansible/. Also un-ignore .envrc, which the global gitignore hides, and ignore the stray .ansible/ runtime directory. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTocXkGUUazHdKKd3r9k71
This commit is contained in:
@@ -20,3 +20,9 @@ __pycache__/
|
||||
.direnv/
|
||||
result
|
||||
result-*
|
||||
|
||||
# direnv shell hook lives in the repo (global gitignore hides it)
|
||||
!.envrc
|
||||
|
||||
# Ansible local runtime dir (facts cache, locks)
|
||||
.ansible/
|
||||
|
||||
Reference in New Issue
Block a user