Portal:Container/Image/ansible-ee
Container images to run Ansible content in with ansible-navigator, and to use as the base of your own Ansible execution environment (EE) built with ansible-builder. All packages in them are openSUSE Leap 16.1 RPMs: nothing comes from pip or Ansible Galaxy.
| Image | Contents |
|---|---|
ansible-ee-minimal-leap16 |
Python 3.13, ansible-core 2.20, ansible-runner, the SSH and WinRM connection libraries, no collections. Use it as is or as the base of your own EE. |
ansible-ee-collections-leap16 |
The minimal image plus the Ansible community package 13, suse.linux_system_roles and the Python libraries for AWS, Azure, Google Cloud, Kubernetes, VMware and Windows.
|
registry.opensuse.org/systemsmanagement/ansible/execution_environments/containerfile_16.1/opensuse/ansible-ee-minimal-leap16:2.20 registry.opensuse.org/systemsmanagement/ansible/execution_environments/containerfile_16.1/opensuse/ansible-ee-collections-leap16:2.20
- Architectures: x86_64 and aarch64.
- All packages, ansible-core included, are openSUSE Leap 16.1 packages; the images are rebuilt when one of them or the base image changes. In November 2026 that is ansible-core 2.20.2 and, in the collections image, Ansible 13.3.0;
ansible --versionin the image shows what you have (Pull and check). - Tags:
2.20andlatestfollow the newest build;2.20.2follows the builds with that ansible-core version.<version>-<release>(for example2.20.2-2.3) names one build; the registry removes it when the next build is published. To pin, use the digest of the2.20index and move the pin when a new build appears: withIMGfrom Pull and check andsudo zypper in skopeo,skopeo inspect --raw docker://$IMG | sha256sumprints it, andpodman pulltakes the image name with@sha256:<digest>in place of:2.20. - The images run as UID 1000 with group 0 and also under any other UID: the working directory is
/runner,HOMEis/home/runner. OpenShift: untested.
Install the tools
sudo zypper in podman ansible-navigator ansible-builder
The commands below were run as a normal user on openSUSE Leap 16.1 (x86_64; on aarch64 the pull, the navigator run, the build and verify.sh; SELinux enforcing) with Leap's podman 5.8.2, ansible-navigator 26.1.3 and ansible-builder 3.1.1.
Pull and check
IMG=registry.opensuse.org/systemsmanagement/ansible/execution_environments/containerfile_16.1/opensuse/ansible-ee-minimal-leap16:2.20
podman pull $IMG
podman run --rm $IMG ansible --version
podman run uses a local copy of a tag if one exists; pull again (or use --pull=newer) to get the current build. --pp always does the same for ansible-navigator.
ansible-navigator mounts your whole ~/.ssh directory into the container, read-write, at /home/runner/.ssh: the keys and known_hosts you use with ssh work as they are, and everything that runs in the container, including the collections and roles your playbook uses, can read every private key there and write to the directory.
A one-line inventory.ini and a playbook site.yml:
node1 ansible_host=192.0.2.10 ansible_user=admin
- hosts: all
tasks:
- ansible.builtin.ping:
Connect to each host once with ssh and accept its key, then run (IMG from Pull and check):
ansible-navigator run site.yml -i inventory.ini --eei $IMG --ce podman --pp always --mode stdout \
--senv ANSIBLE_HOST_KEY_CHECKING=True
ansible-navigator turns host key checking off unless ANSIBLE_HOST_KEY_CHECKING is set; with --senv as above, a host that is not in your known_hosts, or whose key has changed, is reported as unreachable. Without it, the key of a new host is not checked but is written to your known_hosts, and your own ssh trusts that key from then on. host_key_checking = True in ansible.cfg does not turn checking on. To turn it on for every run in a project directory, put this in ansible-navigator.yml there:
---
ansible-navigator:
execution-environment:
environment-variables:
set:
ANSIBLE_HOST_KEY_CHECKING: "True"
To use the collections image, set --eei to the full name, registry.opensuse.org/systemsmanagement/ansible/execution_environments/containerfile_16.1/opensuse/ansible-ee-collections-leap16:2.20.
Add --co=--network=host when the managed host is reached through a port on the local machine (127.0.0.1).
Use it in AWX
AWX: untested.
Add the image as an execution environment (Administration → Execution Environments), or through the API (untested):
curl -u admin:$AWX_PASSWORD -H 'Content-Type: application/json' -X POST \
https://awx.example.com/api/v2/execution_environments/ \
-d '{"name": "openSUSE Leap 16.1 minimal", "image": "'$IMG'", "pull": "always"}'
Then select it in a job template or for ad hoc commands. The images carry a jsonfile fact cache plugin that writes the per-host format AWX reads; "Enable Fact Storage": untested.
Build your own EE with ansible-builder
The base images use zypper, so the definition names it and leaves out ansible_core / ansible_runner (they are already installed as RPMs). Python libraries can come from RPMs too: list them in bindep.txt and exclude them from the Python requirements.
execution-environment.yml:
version: 3
images:
base_image:
name: registry.opensuse.org/systemsmanagement/ansible/execution_environments/containerfile_16.1/opensuse/ansible-ee-minimal-leap16:2.20
dependencies:
python_interpreter:
python_path: /usr/bin/python3.13
galaxy: requirements.yml
system: bindep.txt
exclude:
python: [kubernetes, PyYAML, jsonpatch]
options:
package_manager_path: /usr/bin/zypper
skip_ansible_check: true
container_init:
package_pip: ""
entrypoint: '["/opt/builder/bin/entrypoint", "catatonit", "--"]'
cmd: '["bash"]'
requirements.yml:
---
collections:
- name: ansible.posix
- name: kubernetes.core
bindep.txt:
jq [platform:rpm] python313-kubernetes [platform:rpm] python313-jsonpatch [platform:rpm] ansible-linux-system-roles [platform:rpm]
ansible-builder create -f execution-environment.yml --output-filename Containerfile
podman build -t my-ee -f context/Containerfile context
ansible-linux-system-roles requires the Ansible community package, so zypper installs that too; when you need both, start from the collections image instead.
podman build --env PIP_NO_INDEX=1 … keeps pip in the build from using PyPI; --env also leaves PIP_NO_INDEX=1 in the environment of the built image. A build that needs PyPI with it set: untested. A wrong package name in bindep.txt shows up when zypper runs in the build.
Verify the signatures and read the SBOM
Both images are signed with the project's OBS key and carry SPDX and CycloneDX SBOMs. verify.sh, in the sources of ansible-ee-minimal-leap16, checks the signatures and the SBOMs of either image, for every architecture of the tag:
sudo zypper in cosign skopeo jq curl openssl gpg2
curl -fsSLO https://build.opensuse.org/public/source/systemsmanagement:ansible:execution_environments/ansible-ee-minimal-leap16/verify.sh
bash verify.sh $IMG systemsmanagement:ansible:execution_environments
Each check prints a line starting with OK:; the script stops at the first one that fails. For the collections image it needs about 1.6 GB of free memory (its SBOMs are large); with less, it is killed before it finishes.