ansible-scaffold-ee

Create containerized Ansible Execution Environments with ansible-builder.

5|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/stoleas/ansible-skills --skill ansible-scaffold-ee-stoleas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ansible-scaffold-ee
Source: https://github.com/stoleas/ansible-skills/tree/main/skills/ansible-scaffold-ee
Command: npx skills add https://github.com/stoleas/ansible-skills --skill ansible-scaffold-ee-stoleas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold Ansible Execution Environments (EEs) with ansible-builder following Red Hat best practices, enabling consistent runtime environments for automation.

Core Features & Use Cases

  • Provides a structured EE scaffold including execution-environment.yml, requirements.yml, requirements.txt, bindep.txt, and ansible.cfg to define and reproduce runtime environments.
  • Supports multi-stage builds, custom build steps, and base image customization to optimize size, performance, and compatibility.
  • Ideal for development pipelines, CI/CD automation, and Ansible Automation Platform deployments requiring repeatable runtimes across teams and environments.

Quick Start

Define execution-environment.yml and run ansible-builder build to generate a containerized EE with your chosen base image.

Frequently Asked Questions about ansible-scaffold-ee

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold an Ansible Execution Environment for CI/CD pipelines?

To scaffold an Ansible Execution Environment, define an execution-environment.yml file alongside requirements.yml, requirements.txt, and bindep.txt to establish a reproducible runtime. This structured project applies directly to CI/CD automation and Ansible Automation Platform deployments requiring consistent environments.

What is an Ansible Execution Environment and when do I need a custom one?

An Ansible Execution Environment is a containerized runtime that packages Ansible, dependencies, and collections. You need a custom execution-environment.yml when your automation requires specific Python libraries, system binaries, or reproducible runtimes across development pipelines and Ansible Automation Platform deployments.

Does ansible-builder support multi-stage builds and custom base images?

Yes, ansible-builder supports custom base image customization and optional build steps to optimize container size and performance. You configure these multi-stage build steps within the execution-environment.yml file to satisfy end-to-end Execution Environment requirements.

What files are required to build a reproducible Ansible runtime container?

Building a reproducible Ansible runtime container requires a multi-file project including execution-environment.yml, requirements.yml, requirements.txt, bindep.txt, and ansible.cfg. These files collectively define dependencies and configuration for the containerized Execution Environment.

How do I generate a containerized EE using ansible-builder after defining the scaffold?

After defining your execution-environment.yml scaffold, generate the containerized EE by running the ansible-builder build command. This processes your base image customization and requirements to create a ready-to-use containerized Ansible Execution Environment.