Sign inSign up

haidarns/ansible

By haidarns

•Updated about 4 years ago

Ansible in Docker

Image
0

152

haidarns/ansible repository overview

Ansible in Docker based on python image. Git & OpenSSH Client ready with ssh-rsa method enabled.

Feel free to use, copy and modify.

Dockerfile

FROM python:3.10-alpine

LABEL maintainer="[email protected]"

ARG ansibleVersion=6.3.0

WORKDIR /root

RUN apk update \
    && apk add openssh-client git \
    && pip install ansible \
    && mkdir -p .ssh \
    && chmod 700 .ssh \
    && pip install --no-cache-dir ansible==${ansibleVersion} \
    && rm -rf /var/cache/apk/* \
    && rm -rf .cache/

RUN echo -e "Host *\n\tStrictHostKeyChecking no\n\tPubkeyAcceptedKeyTypes=+ssh-rsa\n\tHostKeyAlgorithms=ssh-rsa\n\n" > .ssh/config

Tag summary

Content type

Image

Digest

sha256:5e69ae799…

Size

80.7 MB

Last updated

about 4 years ago

docker pull haidarns/ansible:6.3.0-python3.10