Loading…
Red Hat Ansible development workspaces for governed automation content creation
Red HatLeonardo Gallego
Summary
Ansible development workspaces in Red Hat Ansible Automation Platform leverage Red Hat OpenShift Dev Spaces to solve environment drift and lengthy developer onboarding. Instead of configuring local environments, developers access cloud-hosted VS Code instances via a web browser using declarative devfile.yaml configurations. The platform enforces immutability with a read-only /var directory at runtime, preventing arbitrary package installations that cause configuration drift. To address differing domain requirements across teams without creating bloated monolithic images, the solution implements a four-tiered image strategy based on OpenShift BuildConfigs and ImageStreams. When base container images receive security patches, the dependent image layers automatically rebuild throughout the entire chain.
Context
Onboarding automation developers can take weeks, while manual workstation setups create environment drift where mismatched tool versions and missing dependencies cause inconsistent test results across a team.
Approach / What changed
Red Hat implemented Ansible development workspaces using OpenShift Dev Spaces and declarative devfile.yaml definitions alongside a four-tiered container image strategy managed by OpenShift BuildConfigs.
Takeaways
- OpenShift Dev Spaces runs the full Ansible development toolchain in a browser-based VS Code environment, eliminating local runtime dependencies like Python or Podman.
- Container immutability is enforced by setting /var to read-only at runtime, preventing developers from manually running dnf install and introducing drift.
- A four-tiered image model automatically rebuilds dependent domain, team, and personal layers whenever the base container image receives a security patch.
Related reading
Red Hat ·
Try the Ansible playbook generation lab with Gemini and OpenAI
The official Visual Studio Code extension for Red Hat Ansible Automation Platform includes an automation coding assistant, formerly called Ansible Lightspeed. Initially integrated with IBM watsonx, the extension now supports Google Gemini and OpenAI-compatible endpoints through Red Hat AI. An updated interactive lab demonstrates these capabilities through an end-to-end scenario involving database installation and HTML landing page deployment across two nodes. Learners write natural language prompts to generate Ansible playbooks and roles, evaluate output, and utilize real-time automated linting and integrated documentation. By serving an open-source model through a preconfigured OpenAI-compatible endpoint, the refreshed environment removes external credential setup steps.
clobnerRed Hat ·
Accelerate automation with AI and the Ansible development tools MCP servers