Add devcontainer configuration for Codespaces#8
Merged
Conversation
Agent-Logs-Url: https://github.com/Ctrl-Alt-GG/network-services/sessions/6c185bf9-0eb5-41b6-b3f7-0730e9d13957 Co-authored-by: tormachris <1529569+tormachris@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
tormachris
May 5, 2026 12:41
View session
There was a problem hiding this comment.
Pull request overview
Adds a devcontainer definition so contributors can open this Ansible infrastructure repo in Codespaces/devcontainer tools with a preconfigured development environment.
Changes:
- Adds a new
.devcontainer/devcontainer.jsonbased on the Python devcontainer image. - Installs Ansible, ansible-lint, yamllint, and the repo’s required Ansible collections after container creation.
- Configures recommended VS Code extensions and editor settings for Ansible/YAML work.
Comment on lines
+33
to
+34
| "*.yaml": "ansible", | ||
| "*.yml": "ansible" |
Member
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/Ctrl-Alt-GG/network-services/sessions/76ab99a4-3245-4c5f-9735-55200c2c8d6b Co-authored-by: tormachris <1529569+tormachris@users.noreply.github.com>
Contributor
Author
Removed the global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
.devcontainer/devcontainer.jsonso the repository can be opened in GitHub Codespaces or any other devcontainer-compatible tool (VS Code Dev Containers, JetBrains, etc.) with a ready-to-use Ansible development environment.Changes
.devcontainer/devcontainer.jsonmcr.microsoft.com/devcontainers/python:1-3.12-bookworm(Python is the runtime for Ansible).common-utils,git,github-cli.ansible,ansible-lint,yamllint, and the collections fromrequirements.yamlviaansible-galaxy collection install -r requirements.yaml, matching what the CI workflow expects.*.yaml/*.yml→ansibleassociation is set — this preserves GitHub Actions schema/validation for files under.github/workflows/.Usage
After merging, contributors can:
The container will come up with
ansible-playbook,ansible-lint, andyamllintavailable, and all required collections preinstalled — so the same lint/build commands used by.github/workflows/ansible-ci.ymlwork out of the box.