Skip to content
Snippets Groups Projects
Verified Commit 996ade71 authored by Tomáš Sapák's avatar Tomáš Sapák
Browse files

Install Ansible from packages

parent 1be3134d
No related branches found
No related tags found
No related merge requests found
Pipeline #365822 passed with stage
in 1 minute and 49 seconds
FROM alpine:3.19
ARG ANSIBLE_VERSION="5.6.0"
LABEL maintainer="Tomas Sapak <139890@muni.cz>"
LABEL ansible_version=${ANSIBLE_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
ENV ANSIBLE_VERSION=${ANSIBLE_VERSION}
RUN export CRYPTOGRAPHY_DONT_BUILD_RUST=1\
&& apk add --no-cache --virtual build-dependencies python3-dev libffi-dev openssl-dev build-base unzip curl \
&& apk add openssh python3 git py3-pip jq yq \
&& pip3 install ansible==${ANSIBLE_VERSION} cryptography jinja2-cli passlib python-hcl2 netaddr \
&& apk add openssh python3 git py3-pip jq yq ansible \
&& ansible-galaxy collection install community.docker \
&& curl -LO https://github.com/opentofu/opentofu/releases/download/v1.6.0-rc1/tofu_1.6.0-rc1_amd64.apk \
&& apk add tofu_1.6.0-rc1_amd64.apk --allow-untrusted \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment