---
title: "Try the Ansible playbook generation lab with Gemini and OpenAI"
url: https://daily.dev/posts/try-the-ansible-playbook-generation-lab-with-gemini-and-openai-cntxcan1w
source_url: https://developers.redhat.com/articles/2026/08/26/try-ansible-playbook-generation-lab-gemini-and-openai
type: article
source: "Red Hat Developer"
published: 2026-08-26T07:16:41.923Z
updated: 2026-08-26T07:17:04.054Z
tags: ["ai-coding", "vscode", "google-gemini", "red-hat", "ansible"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Try the Ansible playbook generation lab with Gemini and OpenAI

**[Red Hat Developer](https://daily.dev/sources/rhdev)** · 3 min read · 0 upvotes · 0 comments

## Summary

Red Hat has refreshed its interactive hands-on lab for the automation coding assistant (formerly Ansible Lightspeed) in the Ansible VS Code extension. The extension now supports Google Gemini and OpenAI-compatible endpoints via Red Hat AI, in addition to its original IBM watsonx integration. The updated lab walks through generating an Ansible playbook and role for deploying a database server and HTML landing page across web servers, with faster setup and a preconfigured open source model served via an OpenAI-compatible endpoint, removing the need to obtain external credentials.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.redhat.com/articles/2026/08/26/try-ansible-playbook-generation-lab-gemini-and-openai>

## Questions this post answers

### Does the Ansible VS Code extension support AI models other than IBM watsonx?

Yes, the automation coding assistant (formerly Ansible Lightspeed) in the Ansible VS Code extension now supports Google Gemini and OpenAI-compatible endpoints through Red Hat AI, in addition to its original IBM watsonx integration from 2023. This lets teams generate Ansible playbooks and roles using their preferred large language model rather than being locked into a single provider.

_Developers picking an AI backend for infrastructure automation can track tool updates like this on daily.dev._

### What does the Red Hat Ansible automation coding assistant do in VS Code?

It generates Ansible playbooks and roles from natural-language prompts inside the VS Code extension, then automatically lints the output to check for errors. Users can retrieve documentation for unfamiliar modules or keywords with a single click and make manual edits before running the playbook, streamlining the process of writing and validating automation code.

_Engineers evaluating AI-assisted playbook generation can follow tooling updates like this on daily.dev._

## Similar posts on daily.dev

- [Ansible Lightspeed: AI-Powered Playbook Automation Guide](https://daily.dev/posts/ansible-lightspeed-ai-powered-playbook-automation-guide-1xcavmkht) · Spacelift · 0 upvotes · 0 comments
- [Integrate a custom AI service with Red Hat Ansible Lightspeed](https://daily.dev/posts/integrate-a-custom-ai-service-with-red-hat-ansible-lightspeed-tjxmwkuun) · Red Hat Developer · 0 upvotes · 0 comments
- [Automate AI workflows with Red Hat Ansible Certified Content Collection amazon.ai for generative AI](https://daily.dev/posts/automate-ai-workflows-with-red-hat-ansible-certified-content-collection-amazon-ai-for-generative-ai-rxwxc92wm) · Red Hat Developer · 0 upvotes · 0 comments

---

Tags: [#ai-coding](https://daily.dev/tags/ai-coding), [#vscode](https://daily.dev/tags/vscode), [#google-gemini](https://daily.dev/tags/google-gemini), [#red-hat](https://daily.dev/tags/red-hat), [#ansible](https://daily.dev/tags/ansible)

[View this post on daily.dev](https://daily.dev/posts/try-the-ansible-playbook-generation-lab-with-gemini-and-openai-cntxcan1w)
