Este contenido no está disponible en el idioma seleccionado.

Chapter 5. Publishing an automation execution environment


Publish and customize your execution environment images. This procedure guides users in adding custom content, such as a collection, to an existing execution environment image like ee-minimal.

5.1. Customizing an existing automation execution environments image

Ansible Controller includes the following default execution environments:

  • Minimal - ansible-automation-platform-25 Includes the latest Ansible-core 2.16 release along with Ansible Runner, but does not include collections or other content. Ansible-automation-platform-24 Includes the Ansible-core 2.15 release along with Ansible Runner, but does not include collections or other content.

    While supported execution environments cover many automation prerequisites, minimal execution-environments are the recommended basis for your own custom images, to keep full control over dependencies and their versions.

  • EE Supported - Minimal, plus all Red Hat-supported collections and dependencies

While these environments cover many automation use cases, you can add additional items to customize these containers for your specific needs. The following procedure adds the kubernetes.core collection to the ee-minimal default image:

Procedure

  1. Log in to registry.redhat.io using Podman:

    $ podman login -u="[username]" -p="[token/hash]" registry.redhat.io
  2. Ensure that you can pull the required automation execution environment base image:

    podman pull registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest
  3. Configure your Ansible Builder files to specify the required base image and any additional content to add to the new execution environment image.

    1. For example, to add the Kubernetes Core Collection from Galaxy to the image, use the Galaxy entry:

      collections:
        - kubernetes.core
    2. For more information about definition files and their content, see the Breakdown of definition file content section.
  4. In the execution environment definition file, specify the original ee-minimal container’s URL and tag in the EE_BASE_IMAGE field. In doing so, your final execution-environment.yml file appears similar to the following:

    Example 5.1. A customized execution-environment.yml file

    version: 3
    
    images:
      base_image:
        name: 'registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel9:latest'
    
    dependencies:
      galaxy:
        collections:
          - kubernetes.core
    Note

    Since this example uses the community version of kubernetes.core and not a certified collection from automation hub, we do not need to create an ansible.cfg file or reference that in our definition file.

  5. Build the new execution environment image by using the following command:

    $ ansible-builder build -t [username]/new-ee

    where [username] specifies your username, and new-ee specifies the name of your new container image.

    Note

    If you do not use -t with build, an image called ansible-execution-env is created and loaded into the local container registry.

    • Use the podman images command to confirm that your new container image is in that list:

      The following shows the output of a 'podman images' command with the image new-ee.

      REPOSITORY          TAG     IMAGE ID      CREATED        SIZE
      localhost/new-ee    latest  f5509587efbb  3 minutes ago  769 MB
  6. Verify that the collection is installed:

    $ podman run [username]/new-ee ansible-doc -l kubernetes.core
  7. Tag the image for use in your automation hub:

    $ podman tag [username]/new-ee [automation-hub-IP-address]/[username]/new-ee
  8. Log in to your automation hub using Podman:

    Note

    You must have admin or appropriate container repository permissions for automation hub to push a container. For more information, see Manage containers in private automation hub.

    $ podman login -u="[username]" -p="[token/hash]" [automation-hub-IP-address]
  9. Push your image to the container registry in automation hub:

    $ podman push [automation-hub-IP-address]/[username]/new-ee
  10. Pull your new image into your automation controller instance:

    1. Go to automation controller.
    2. From the navigation panel, select Automation Execution Infrastructure Execution Environments.
    3. Click Add.
    4. Enter the appropriate information then click Save to pull in the new image.

      Note

      If your instance of automation hub is password or token protected, ensure that you have the appropriate container registry credential set up.

Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2026 Red Hat
Volver arriba