This repository contains following features:
- ansible: Template for Ansible Playbooks, Roles, and Collections
This repository contains a collection of Templates. These Templates serve as simple template implementations which helps containerize the project. Similar to the devcontainers/templates
repo, this repository has a src
folder. Each Template has its own sub-folder, containing at least a devcontainer-template.json
and .devcontainer/devcontainer.json
.
├── src
│ ├── ansible
│ │ ├── devcontainer-template.json
│ │ ├──| .devcontainer
│ │ | └── devcontainer.json
│ │ └──| .github
│ │ └── dependabot.yml
| ├── ...
│ │ ├── devcontainer-template.json
│ │ └──| .devcontainer
│ │ └── devcontainer.json
├── test
│ ├── ansible
│ │ └── test.sh
│ └──test-utils
│ └── test-utils.sh
...
All available options for a Template should be declared in the devcontainer-template.json
. The syntax for the options
property can be found in the devcontainer Template json properties reference.
For example, the color
Template provides three possible options (red
, gold
, green
), where the default value is set to "red".
{
// ...
"options": {
"favorite": {
"type": "string",
"description": "Choose your favorite color."
"proposals": [
"red",
"gold",
"green"
],
"default": "red"
}
}
}
An implementing tool will use the options
property from the documented Dev Container Template properties for customizing the Template. See option resolution example for details.