Red Hat Ansible Lightspeed with IBM watsonx Code Assistant


Red Hat® Ansible® Lightspeed with IBM watsonx Code Assistant is a generative AI service engineered to help your automation teams create, adopt, and maintain Ansible content more efficiently. Connected to IBM watsonx Code Assistant, Red Hat Ansible Lightspeed helps you turn your automation ideas into Ansible code with natural language prompts. A component of Red Hat Ansible Automation Platform, Red Hat Ansible Lightspeed is accessed directly in Visual Studio Code via the Ansible extension.

What to expect

When your organization deploys Red Hat Ansible Lightspeed with IBM watsonx Code Assistant to help accelerate IT automation, you can expect to: 

Enhance productivity, with AI-generated code recommendations that are more accurate, more reliable, and integrated into your automation developers’ existing Ansible workflows.

Expand who can create, by reducing barriers to entry for automation code creation and empowering automation subject matter experts (SMEs) with basic coding knowledge to translate their expertise into usable Ansible Playbooks.

Extend trust, with an automation code base that adheres to accepted Ansible best practices, options to customize data models, and significant data safeguards in place.

Table 1. Red Hat Ansible Lightspeed features and benefits

Task generationGenerates a task for an Ansible Playbook or Role from a natural language prompt
Multitask generationGenerates multiple Ansible task suggestions for Ansible Task files and Playbooks by providing a sequential chain of natural language task prompts chained together using ampersands (&) in YAML comment (#) lines
Content source matching

Attempts to match each generated code snipped recommendation to the top 3 closest potential data training sources, including the Ansible content, content authors, and content licenses

Ansible code bot*
*In technology preview

Scans existing content collections through selected Git repositories and automatically submits pull requests that can be qualitatively improved with the most up-to-date Ansible best practices

Post-processing rules

Augments generated code recommendations to ensure they adhere to Ansible best practices


Red Hat Ansible Lightspeed with watsonx Code Assistant has a highly focused core function: to minimize the effort it takes to create, maintain, and improve the quality of Ansible code. These new generative AI capabilities for Ansible Automation Platform will integrate into existing workflows while helping to improve efficiency, service delivery, and scalability. And it does all of these things while providing:

More transparency. At Red Hat, openness is always a priority. Red Hat Ansible Lightspeed with watsonx Code Assistant allows you to identify the potential source, author, and license of the training data used for generated code recommendations. Red Hat is also committed to ensuring that Ansible content being used to train IBM watsonx Code Assistant model is covered by the appropriate licenses while Ansible Galaxy content contributors have a choice as to whether or not their work contributes to ongoing fine-tuning of the model.

More accuracy. Unlike other generative AI tools, Red Hat Ansible Lightspeed with IBM watsonx Code Assistant is focused specifically on automation, with a foundation model trained on Ansible content. The results are generated code recommendations that are more accurate, contextualized, and adherent to accepted Ansible best practices.

More choice. Red Hat Ansible Lightspeed with IBM watsonx Code Assistant is designed to give you choice. Customize and fine-tune your watsonx Code Assistant model to your exact needs. Choose which data and namespaces are used to train the model. Choose what Git repositories the Ansible code bot operates in. Manage named seats directly in your platform console with relative ease. 

If your organization is searching for a trusted way to tap into the transformative potential of generative AI, consider Red Hat Ansible Lightspeed with IBM watsonx Code Assistant.

Next steps

Visit to learn more and get started.