From c7edd5ee9e5341338380a1a55939d0b24ead8f82 Mon Sep 17 00:00:00 2001 From: Adrian Kierzkowski Date: Tue, 6 Aug 2024 15:18:11 +0200 Subject: [PATCH] Added Ansible installation via onCreateCommand. --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 48b74cfac..1e2528400 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -26,7 +26,6 @@ // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/devcontainers-contrib/features/actionlint:1": {}, - "ghcr.io/devcontainers-contrib/features/ansible:2": {}, "ghcr.io/guiyomh/features/vim:0": {}, "ghcr.io/jungaretti/features/make:1": {}, "ghcr.io/prulloac/devcontainer-features/pre-commit:1": {}, @@ -47,4 +46,5 @@ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", + "onCreateCommand": "sudo apt update && sudo apt install -y pipx && pipx install --include-deps ansible" }