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

Support for Ansible 10.3 / 10.4 #23

Closed
kamranayub opened this issue Sep 20, 2024 · 2 comments
Closed

Support for Ansible 10.3 / 10.4 #23

kamranayub opened this issue Sep 20, 2024 · 2 comments

Comments

@kamranayub
Copy link

I am trying out Spacelift and my Ansible stack is working... except I'm relying on some modules that support newer parameters available in Ansible 10.3+. I noticed Alpine edge supports 10.4.0-rc0 but it seems like this is using the older versions, so my Run is failing.

image

image

I was trying to figure out how to customize this image but I'm a Docker newbie. Is there a way I can either a) customize this image or b) have a tag for the latest version to use on Spacelift easily?

@kamranayub
Copy link
Author

OK I figured it out!

Workaround

I can customize the image basically by copy/pasting and adjusting the versions 😄

Here is my new runner image Dockerfile:

FROM public.ecr.aws/spacelift/runner-terraform:v1.5.0_20240617

USER root
WORKDIR /home/spacelift

RUN apk -U upgrade && apk add --no-cache gcc py3-pip python3-dev musl-dev libffi-dev && \
  pip install ansible==10.4.0 ansible-runner==2.4.0 --break-system-packages && \
  apk del python3-dev gcc musl-dev libffi-dev

USER spacelift

And it's available here:

https://github.com/users/kamranayub/packages/container/package/spacelift-ansible

I expect this is temporary until an official runner image is available with 10.4.0 🚀

But I'm unblocked for now, it's working!

@peterdeme
Copy link
Contributor

@kamranayub thanks for opening the issue. The ansible versioning should be solved in #21

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

No branches or pull requests

2 participants