THIS PROJECT IS ARCHIVED
See hspaans/ansible-playbook-template as an alternative.
Add .devcontainer/devcontainer.json
to your repository.
{
"image": "ghcr.io/hspaans/ansible-devcontainer:latest",
"name": "Ansible",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"appPort": [],
"postCreateCommand": "ansible-galaxy install -r roles/requirements.yml",
"remoteUser": "vscode",
"extensions": [
"github.vscode-pull-request-github",
"ms-python.python",
"redhat.vscode-yaml"
]
}
The container is based on LTS distribution versions with official support and fall within N and N-2. The latest-tag is an experimental tag to test future releases. See Ansible: Release and Maintenance for the upstream maintenance and release matrix.
Platform | Version | Image |
---|---|---|
Ansible | 2.8 | hspaans/ansible-devcontainer:2.8 |
Ansible | 2.9 | hspaans/ansible-devcontainer:2.9 |
Ansible Base | 2.10 | hspaans/ansible-devcontainer:2.10 |
Ansible Core | 2.11 | hspaans/ansible-devcontainer:latest |