Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default execution environment cannot even run an ansible job with built-in modules. Had to use alternative images to build a custom execution environment to successfully run a job #86

Open
muralihcl opened this issue Jun 12, 2024 · 2 comments

Comments

@muralihcl
Copy link

The default execution environment cannot even run an ansible job with built-in modules (
ghcr.io/ctrliq/ascender-ee:latest). Had to use alternative image to build a custom execution environment to successfully run a job.

Attempt to run a Job template with the default execution environment gave error for ansible.builtin.ufw and community.general.ufw modules. The base image does not even have Python3, so customizing packages always results in a failed build. I could not explore the ghcr.io registry, so not sure if any other variants could be of use here.

image

When tried with a CentOS9 based custom execution environment, which I have built with ansible core 2.15.x and ansible version 8.7 with all necessary collections and pip packages, I never faced any challenges while running the ansible job.
image

What is missing here?

@michaelford85
Copy link
Contributor

@muralihcl Are you certain that there is a ansible.builtin.ufw module? I'm not seeing that there is one in the documentation. Regarding the community.general collection, I'll see if that's part of the execution environment.

@muralihcl
Copy link
Author

muralihcl commented Jun 14, 2024

Apparently, ansible.builtin.ufw gets redirected to community.general.ufw. But, I still cannot run the jobs with the default execution environment.

The execution environment is pointing to the image ghcr.io/ctrliq/ascender-ee:latest and it is set to never pull the image.

image

The containerd shows the image is present on the system via 'crictl image ls'.

image

I customized an execution environment and tagged it to be visible as custom-ee and setup the execution environment pull policy to never.

With Ascender-EE(latest), I still cannot run the job. It says, unable to resolve community.general.ufw module. With Custom execution environment, I can run the job without any challenge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants