diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9e446d6170..e664df7540 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,9 @@ { "name": "Alpine", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + //"image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "service": "ansible", + "dockerComposeFile": "docker-compose.yml", "features": { "ghcr.io/devcontainers-contrib/features/ansible:2": {} }, diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 0000000000..33e0448e84 --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3" + +services: + ansible: + image: mcr.microsoft.com/devcontainers/base:ubuntu + volumes: + - ..:/workspaces/ansible_collections/community/general + restart: always + command: sleep infinity \ No newline at end of file