Creating and modifying your execution environments
The EEs that come with Ansible Automation Platform can perform most general tasks, though some collections have different Python or system requirements that aren’t included in a base container image.
To allow anyone to create an EE, the Ansible Builder tool was introduced. This tool takes a definition file and creates an EE.
Creating a definition file
The definition file is made up of four sections, as follows:
- Base section: This is where the base variables are set.
- Build arguments section: This is where the build arguments are set.
- Dependencies section: This is where definitions for dependencies are set.
- Build steps section: This is where additional build arguments are set.
To follow along, a base execution file has been created in this chapter’s files:
//base/base_execution_enviroment.yml
---
version: 1
build_arg_defaults:
EE_BASE_IMAGE: 'ah.node/ee-minimal...