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
29 lines
404 B
Plaintext
29 lines
404 B
Plaintext
.env
|
|
*.env
|
|
!*.env.example
|
|
passwd
|
|
.venv/
|
|
ansible/.venv/
|
|
ansible/collections/
|
|
ansible/generated/
|
|
ansible/inventory/host_vars/gyro/vault.yml
|
|
node_modules/
|
|
|
|
# Python bytecode
|
|
__pycache__/
|
|
*.py[cod]
|
|
|
|
# Local build artifacts
|
|
*.tar.xz
|
|
|
|
# Nix / direnv
|
|
.direnv/
|
|
result
|
|
result-*
|
|
|
|
# direnv shell hook lives in the repo (global gitignore hides it)
|
|
!.envrc
|
|
|
|
# Ansible local runtime dir (facts cache, locks)
|
|
.ansible/
|