Connect the AAP Coding Assistant to IBM watsonx: Setup Guide
By Luca Berton · Published 2024-01-01 · Category: installation
Step-by-step guide to connecting the AAP Coding Assistant VS Code extension to IBM watsonx, the first BYOM provider supported in AAP 2.5+.
Why IBM watsonx Matters for the Coding Assistant
When Red Hat engineers walked through the Bring Your Own Model (BYOM) provider compatibility matrix at Red Hat Tech Day Netherlands 2026 in Bunnik, one detail stood out: IBM watsonx has been supported as an external model provider for the AAP Coding Assistant since AAP 2.5 — well before any other third-party provider. OpenAI and Azure OpenAI support for the Coding Assistant is still marked "Coming Soon," and Google Gemini/Vertex only landed with AAP 2.6. Watsonx got there first.
That timing matters if you're planning your organization's AI-assisted automation rollout. If you're standardizing on IBM watsonx for content generation, governance, or foundation model hosting, the Coding Assistant — the Ansible VS Code extension that suggests and generates playbook content directly in your editor — is the AI feature you can wire up to watsonx today, with the longest production track record of any BYOM integration in the platform.
This guide walks through what "connecting" actually means in practice, what you need before you start, and how to structure your Ansible content once the integration is live.
See also: Connect the AAP Coding Assistant to Google Gemini: Setup Guide
Coding Assistant vs. Intelligent Assistant: Don't Mix Them Up
AAP 2.7 ships two distinct AI surfaces, and they do not share the same provider support. Confusing them is the most common configuration mistake teams make.
| AI Feature | What it does | IBM watsonx support |
|---|---|---|
| Intelligent Assistant | Chatbot embedded in the AAP UI, answers questions about jobs, inventories, and automation content | Not supported |
| Coding Assistant | VS Code extension that generates and suggests Ansible task/playbook content as you type | Supported since AAP 2.5+ (first external provider) |
Prerequisites
Before connecting the Coding Assistant to watsonx, confirm the following:
- AAP version: You need AAP 2.5 or later. The BYOM framework that enables external providers for the Coding Assistant was introduced at that release, and it continues to be supported through AAP 2.6 and AAP 2.7.
- IBM watsonx account and project: You'll need a watsonx.ai project with an active API key and the project ID/region endpoint for the foundation model service you intend to use for code generation.
- VS Code with the Ansible extension installed: The Coding Assistant capability is delivered through the Ansible extension for VS Code, which is the client that talks to the configured backend model provider.
- Network path from your VS Code client to watsonx.ai: Whether you're going through AAP's Lightspeed configuration service directly, or through an organization-managed proxy, confirm outbound connectivity to the IBM Cloud endpoint your watsonx project uses.
- Administrative access to the AAP Lightspeed/BYOM provider configuration: Registering an external model provider is an administrative action, not something end users configure individually in their editor.
Step-by-Step: Registering watsonx as a Provider
- Log in to AAP as a platform administrator and navigate to the AI/Lightspeed provider configuration area where BYOM providers are registered.
- Add a new external provider entry and select IBM watsonx from the supported provider list for the Coding Assistant feature.
- Supply your watsonx credentials: API key, project ID, and the regional service endpoint for your watsonx.ai instance.
- Select the foundation model you want the Coding Assistant to use for Ansible content generation. Different watsonx-hosted models will vary in code-generation quality, so validate against representative playbook prompts before rolling out broadly.
- Save and activate the provider for the Coding Assistant scope specifically — remember this registration does not extend to the Intelligent Assistant.
- Authenticate the VS Code Ansible extension against your AAP instance so it picks up the newly configured watsonx-backed Coding Assistant endpoint.
- Test with a simple prompt inside a playbook file to confirm suggestions are being generated and routed through watsonx rather than a default or fallback provider.
Example: What the Coding Assistant Helps You Write
Once connected, the Coding Assistant accelerates day-to-day playbook authoring. For example, if you start typing a task comment describing intent, the assistant can propose structured YAML like this:
---
- name: Ensure application configuration is enforced across web nodes
hosts: webservers
become: true
vars:
app_config_path: /etc/myapp/app.conf
app_config_owner: myapp
app_config_mode: "0640"
tasks:
- name: Deploy application configuration file
ansible.builtin.template:
src: templates/app.conf.j2
dest: "{{ app_config_path }}"
owner: "{{ app_config_owner }}"
group: "{{ app_config_owner }}"
mode: "{{ app_config_mode }}"
notify: Restart application service
- name: Ensure application service is enabled and running
ansible.builtin.systemd:
name: myapp
enabled: true
state: started
handlers:
- name: Restart application service
ansible.builtin.systemd:
name: myapp
state: restartedThe value of the watsonx-backed suggestion engine here isn't the boilerplate itself — it's speeding up the first draft of module selection, variable naming consistency, and handler wiring so your automation engineers spend review time on logic and idempotency rather than syntax.
See also: Connect the AAP Intelligent Assistant to Azure OpenAI: Setup Guide
A Note on BYOK: Related but Separate
Also announced at Red Hat Tech Day Netherlands 2026 was BYOK ("Bring Your Own Knowledge"), currently in Tech Preview. BYOK lets organizations inject internal policies, best practices, and procedures — change-management workflows, network naming conventions, compliance requirements such as PCI-DSS, HIPAA, or SOC2, and internal runbooks — into the Intelligent Assistant's RAG pipeline, so chatbot answers are grounded in your organization's actual procedures rather than generic Ansible documentation.
It's worth flagging because it's easy to conflate with the watsonx Coding Assistant integration covered here. BYOK is a knowledge-augmentation feature for the Intelligent Assistant chatbot; it is unrelated to which foundation model backend powers the Coding Assistant's code suggestions. Don't expect connecting watsonx to the Coding Assistant to automatically ground it in your internal runbooks — that's a different feature, on a different AI surface, and it's still in Tech Preview.
Key Takeaways
- IBM watsonx is the first external (BYOM) model provider supported for the AAP Coding Assistant, available since AAP 2.5+ — ahead of OpenAI, Azure OpenAI, and Gemini/Vertex.
- Watsonx support applies only to the Coding Assistant (VS Code extension), not the Intelligent Assistant chatbot embedded in the AAP UI.
- Registering watsonx requires administrative access to AAP's Lightspeed/BYOM provider configuration, plus a valid watsonx.ai project, API key, and endpoint.
- BYOK (Tech Preview), which grounds the Intelligent Assistant in your organization's own policies and compliance documentation, is a separate feature and does not depend on your Coding Assistant provider choice.
- Validate model output against real playbook prompts before broad rollout — code-generation quality will vary by the specific watsonx-hosted foundation model you select.
Category: installation