Using roles to create execution environments
The command line is the way to use Ansible Builder, and there are roles to help build execution environments using Configuration as Code (CaC). This section will cover two roles from redhat_cop.ee_utilities
. The first is the ee_builder
role, which is built to take inputs and build out an execution environment. The second role is virtualenv_migrate
, which is built to convert a Python virtual environment from a legacy Ansible Tower installation into an EE using the ee_builder
role.
Creating an execution environment using the builder role
This role is useful for creating a CI/CD utility that can update execution environments when change is required. This is important as Red Hat releases regular updates for the base EE images, and it can also be used to add to an EE over time. Using CaC to define and create the EE makes managing it easy.
The ee_builder
role takes the following variables. They are the variable equivalents of the sections...