ansible-nas/.vscode/tasks.json
2024-02-25 15:47:00 +00:00

37 lines
1.1 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run Playbook",
"type": "shell",
"command": "ansible-playbook -i inventory nas.yml -b -K",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run Playbook Syntax Check",
"type": "shell",
"command": "ansible-playbook -i inventory nas.yml --syntax-check",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Run pre-commit checks",
"type": "shell",
"command": "pre-commit run --all-files",
"group": "test"
},
{
"label": "Run pytest",
"type": "shell",
"command": "pytest --molecule-base-config=../../tests/molecule/base.yml",
"group": "test"
}
]
}