Building custom EE from the doco

Hi

Newbie looking to learn, using Building your first Execution Environment — Ansible Community Documentation

It talks about

Create a `execution-environment.yml` file that specifies dependencies to include in the image.

Doesn’t actually say how to do this ?

1 Like

Indeed it’s a bit short, maybe the execution-environment.yml file itself is somwhere else in the doc.

You have much more informations here : https://ansible.readthedocs.io/_/downloads/builder/en/stable/pdf/

The example in page 13 is a good start, but you will have to go through several example scattered across the file to explore the various possibilities (page 18 is usefule too).

@Keyzer_Suze hello, thanks for the feedback!
It was there… the doc has been recently moved back and forth, so that part was lost. Working on it, thanks!

It contained the following i think:

version: 3

images:
  base_image:
    name: quay.io/fedora/fedora:latest

dependencies:
  ansible_core:
    package_pip: ansible-core
  ansible_runner:
    package_pip: ansible-runner
  system:
  - openssh-clients
  - sshpass
  galaxy:
    collections:
    - name: community.postgresql
1 Like

I’ve just merged a temporary fix getting_started_ee/build_execution_environment.rst: temporary sample fix by Andersson007 · Pull Request #1924 · ansible/ansible-documentation · GitHub, thanks, it’ll appear on docs.ansible.com soon