VS Code snippets for ServiceNow ITSM Ansible Collection modules.
Features
YAML Snippets: Type module prefixes (e.g., snow.itsm.api) to insert complete Ansible task templates
Export Context Command: Export YAML examples for use with AI coding assistants
Usage
Snippets
In YAML files, type any of these prefixes and press Tab:
snow.itsm.api
snow.itsm.incident
snow.itsm.change_request
And more...
Export source playbooks as context for Coding agents
Open the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on Mac) and run: SNOW ITSM Ansible: Export YAML Context for AI Coders to save a comprehensive YAML file containing example playbooks for all ServiceNow ITSM modules. This file can be provided as context to AI coding assistants (like GitHub Copilot, Claude Code, Cursor, Windsurf etc.) to help them understand the correct syntax and parameters when generating Ansible playbooks for ServiceNow ITSM operations.
Requirements
ServiceNow ITSM Ansible Collection installed
VS Code 1.101.0 or higher
Disclaimer
This is a community contribution. Please test your configs and code before deploying. Extension publisher cannot guarantee that the snippets will work in your environment or that they are accurate. Please report bugs and issues at agentics.dev@gmail.com
Release Notes
0.0.1
Initial release
Added YAML snippets for all ServiceNow ITSM Ansible Collection modules
Added command to export YAML context file for AI coding assistants
Includes comprehensive examples with detailed parameter documentation