// For format details, see https://aka.ms/devcontainer.json. { "name": "Ansible - Proxmox Post-Install", "image": "mcr.microsoft.com/devcontainers/python:3-3.14-trixie", // Do NOT use separate devcontainer features for ansible and ansible-lint. // Both features use pipx and create isolated venvs, so ansible-lint ends up // with its own internal Ansible copy that cannot see externally installed // collections — causing syntax-check failures even after collection install. // Installing everything via pip into the shared base Python env solves this. "postCreateCommand": "pip install --quiet ansible ansible-lint && ansible-galaxy collection install -r ansible/requirements.yaml", "customizations": { "vscode": { "settings": { "ansible.python.interpreterPath": "/usr/local/bin/python" }, "extensions": [ "redhat.ansible", "ms-python.python" ] } } }