Install Ansible Core tooling using pipx.
This feature installs:
ansible-coreviapipx- Optional Ansible Galaxy collections and roles
This feature depends on ghcr.io/devcontainers/features/python:1 to provide Python tooling (pipx/pip).
"features": {
"ghcr.io/sliekens/devcontainer-features/ansible-core:1": {
"collections": "community.general,ansible.posix",
"roles": "geerlingguy.docker"
}
}Copy the block below into a chat with your coding agent:
Add
ghcr.io/sliekens/devcontainer-features/ansible-core:1to this project's Dev Container. Follow https://github.com/sliekens/devcontainer-features/blob/main/src/ansible-core/README.md. Use the collection's sharedinitializeCommandpipeline (devcontainer + jq + xargs overcustomizations.sliekens[].initializeCommand) for host bind pre-create; Unix/WSL2 only. Prefer that over hand-writtenmkdirunless asked.
This version supports images where the Python feature can provide pipx.
This feature is released under the MIT License.
The installed tool is subject to its own license: Ansible Core license.
- Initial release.