This directory contains the definition files for an Ansible Execution Environment Definition.
execution-environment.yml- Main EE definition filerequirements.txt- Python package requirementsbindep.txt- System package requirementsrequirements.yml- Ansible Galaxy collection requirements
- Base Image:
registry.access.redhat.com/ubi9/python-311:latest
ansible.netcommonansible.posix
ncclient
libsshwgetcurl
To build this Execution Environment Definition, run:
ansible-builder build -t my-execution-environment:latest -f execution-environment.yml --container-runtime podman- ansible-builder installed
- Container runtime (Podman or Docker)
Once built, you can use this Execution Environment with:
# Run with ansible-navigator
ansible-navigator run playbook.yml --execution-environment-image my-execution-environment:latest
# Or with ansible-runner
ansible-runner run . -p playbook.yml --container-image my-execution-environment:latestYou can modify the execution-environment.yml file to add additional dependencies or build steps as needed.