
- Describe the desired outcome in plain English (for example, “install Apache and ensure it is started”) and Lightspeed proposes YAML tasks or a playbook scaffold.
- Because it’s powered by IBM watsonx Code Assistant and trained on Ansible-specific content, suggestions are aligned with Red Hat best practices and compatible modules.
- The result is faster playbook creation, fewer syntax mistakes, and recommendations that map to official documentation.

- Suggestions that prioritize certified Ansible modules, roles, and collections instead of generic completions.
- Inline YAML validation and quick links to module documentation while you edit.
- Context awareness: Lightspeed reads YAML structure, the tasks you’re authoring, and modules already present in your file to produce more accurate output.

- You type a natural language prompt or a commented instruction inside VS Code (e.g., “install Apache and start the service”).
- The prompt is sent to the Red Hat Lightspeed service, which forwards it to IBM watsonx Code Assistant.
- IBM watsonx Code Assistant generates the corresponding Ansible YAML (tasks, handlers, or a playbook scaffold).
- The generated YAML is returned to VS Code for preview, acceptance, or iterative refinement.
- The Red Hat Ansible Extension validates YAML syntax in real time and surfaces module docs and hints while you work.

Lightspeed is Ansible-aware and context-sensitive: it favors certified modules and official collections, validates YAML inline, and links to module documentation. Always review and test any generated code before deploying it in production.
- AI playbook generation: Describe an outcome and receive tasks or a full playbook scaffold.
- Code explanations: Ask Lightspeed to explain what a task or playbook does so you can understand existing automation.
- Smart refactoring: Get suggestions to simplify tasks, combine steps, or improve structure.
- Integrated validation: The extension flags YAML issues and links suggestions to official Ansible module docs.
| Feature | Benefit | Example |
|---|---|---|
| AI playbook generation | Rapidly produce task lists and playbook scaffolds | “Create a playbook to install and start httpd on RHEL” |
| Code explanation | Faster understanding of existing automation | “Explain what this task does” |
| Smart refactoring | Cleaner, more maintainable playbooks | Suggestions to use loops, handlers, or roles |
| Integrated validation | Fewer syntax and module-usage errors | Inline linting and links to module docs |

- Visual Studio Code: https://code.visualstudio.com/
- Red Hat Ansible Extension (VS Code Marketplace): https://marketplace.visualstudio.com/items?itemName=redhat.ansible
- IBM watsonx Code Assistant: https://www.ibm.com/products/watsonx-code-assistant
- GitHub Copilot (comparison): https://learn.kodekloud.com/user/courses/github-copilot-in-action