Set up Red Hat Ansible Lightspeed on-premise deployment
As an administrator, you can deploy Ansible Lightspeed on-premise and connect it to IBM watsonx Code Assistant. Once the deployment is complete, you can use the Ansible Lightspeed service through the Ansible Visual Studio (VS) Code extension.
- Red Hat Ansible Lightspeed on-premise deployments are supported on Red Hat Ansible Automation Platform version 2.4 and later.
- The IBM Cloud service instance of IBM watsonx Code Assistant is available in the following data centers:
- Dallas (
us-south) - Frankfurt (
eu-de) - Sydney (
au-syd) (Essentials plan only)
- Dallas (
Ansible Lightspeed cloud deployments are configured to connect exclusively to the US (Dallas) IBM data center. Attempts to connect from non-US data centers will result in connection failure. If you want to use a non-Dallas IBM data center, then you must set up Ansible Lightspeed in hybrid deployment model. For more information about IBM’s supported data centers, see the topic Setting up your watsonx Code Assistant for Red Hat Ansible Lightspeed service in IBM watsonx Code Assistant documentation.
Overview Copy linkLink copied!
This section provides information about the system requirements, prerequisites, and the process for setting up a Red Hat Ansible Lightspeed on-premise deployment.
Deployment models Copy linkLink copied!
You can use one of the following modes of deployment:
- On-premise deployment
Both Red Hat Ansible Lightspeed and the IBM watsonx Code Assistant model (IBM Cloud Pak for Data) are on-premise deployments. Telemetry data is not collected for an on-premise mode of deployment.
- Hybrid deployment
Red Hat Ansible Lightspeed is an on-premise deployment, while IBM watsonx Code Assistant model is a cloud deployment. Telemetry data is not collected for hybrid deployments.
A hybrid deployment model provides the following benefits:
- Enables you to set up an on-premise deployment of Red Hat Ansible Lightspeed, with IBM watsonx Code Assistant model on a cloud environment.
- Provides the freedom and flexibility to choose an environment that best suits your organizational needs.
- Enables organizations to use the Ansible Automation Platform for user authentication, instead of logging into the Red Hat cloud.
- Enables organizations to deploy the Ansible Automation Platform in their preferred region.
System requirements Copy linkLink copied!
Your system must meet the following minimum system requirements to install and run the Red Hat Ansible Lightspeed on-premise deployment.
| Requirement | Minimum requirement |
|---|---|
| RAM |
5 GB |
| CPU |
1 |
| Local disk |
40 GB |
To see the rest of the Red Hat Ansible Automation Platform system requirements, see the System requirements section of Planning your installation.
You must also have installed IBM watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data. The installation includes a base model that you can use to set up your Red Hat Ansible Lightspeed on-premise deployment. For installation information, see the watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data documentation.
Prerequisites Copy linkLink copied!
- You have installed Red Hat Ansible Automation Platform on your Red Hat OpenShift Container Platform environment.
- You have administrator privileges for Red Hat Ansible Automation Platform.
- You have installed IBM watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data.
- Your system meets the minimum system requirements to set up Red Hat Ansible Lightspeed on-premise deployment.
- You have obtained an API key and a model ID from IBM watsonx Code Assistant.
For information about obtaining an API key and model ID from IBM watsonx Code Assistant, see the IBM watsonx Code Assistant documentation. For information about installing IBM watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data, see the watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data documentation.
- You have an existing external PostgreSQL database configured for the Red Hat Ansible Automation Platform, or have a database created for you when configuring the Red Hat Ansible Lightspeed on-premise deployment.
Configure Ansible VS Code extension for Red Hat Ansible Lightspeed on-premise deployment Copy linkLink copied!
To access the on-premise deployment of Red Hat Ansible Lightspeed, all Ansible users within your organization must install the Ansible Visual Studio (VS) Code extension in their VS Code editor, and configure the extension to connect to the on-premise deployment.
Before you begin Copy linkLink copied!
- You have installed VS Code version 1.70.1 or later.
Procedure Copy linkLink copied!
Connect to a different IBM watsonx Code Assistant model Copy linkLink copied!
After you have set up the Red Hat Ansible Lightspeed on-premise deployment successfully, you can modify the deployment if you want to connect to another IBM watsonx Code Assistant model.
Before you begin Copy linkLink copied!
- You have set up a Red Hat Ansible Lightspeed on-premise deployment.
- You have obtained an API key and a model ID of the IBM watsonx Code Assistant model you want to connect to.
- You have created a new model configuration secret for the IBM watsonx Code Assistant model that you want to connect to. For information about creating a model configuration secrets, see Creating a model configuration secret.
About this task Copy linkLink copied!
For example, you connected to the default IBM watsonx Code Assistant model but now want to connect to a custom model instead. To connect to another IBM watsonx Code Assistant model, you must create new connection secrets, and then update the connection secrets and parameters on an existing Ansible Automation Platform operator.
Procedure Copy linkLink copied!
Monitor your Red Hat Ansible Lightspeed on-premise deployment Copy linkLink copied!
After the Red Hat Ansible Lightspeed on-premise deployment is successful, use the following procedure to monitor the metrics on an API endpoint /metrics.
Procedure Copy linkLink copied!
- Create a system auditor user:
- Create a user with a system auditor role in the Red Hat Ansible Automation Platform. For the procedure, see the Creating a user section of Getting started with Ansible Automation Platform.
- Verify that you can log in to the Ansible Lightspeed portal for on-premise deployment (
https://<lightspeed_route>/) as the newly-created system auditor user, and then log out.
- Create a token for the system auditor user:
- Monitor your Red Hat Ansible Lightspeed on-premise deployment, by using the authorization token of the user with the system auditor role, to access the metrics endpoint
https://<lightspeed_route>/metrics.
Use the Ansible Lightspeed REST API Copy linkLink copied!
As the platform administrator, you can configure and use the Ansible Lightspeed REST API to build a custom automation development and tooling workflow outside of VS Code. For information about the Ansible Lightspeed REST API, see Ansible AI Connect. 1.0.0 (v1) in the API catalog.
Before you begin Copy linkLink copied!
- Ensure that you are using the Red Hat Ansible Automation Platform operator patch version 2.5-20250305.9 or later and Red Hat Ansible Lightspeed operator version 2.5.250225 or later.
About this task Copy linkLink copied!
The Ansible Lightspeed REST API is available for Ansible Automation Platform 2.5 and later.