From c8a13e5a581f5a14fd1c4149bc2987684d6ce1fe Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 17 May 2022 15:14:23 -0700 Subject: [PATCH] + Working ansible image --- ansible/Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ansible/Dockerfile diff --git a/ansible/Dockerfile b/ansible/Dockerfile new file mode 100644 index 0000000..6a66760 --- /dev/null +++ b/ansible/Dockerfile @@ -0,0 +1,24 @@ +# Inpsired by William Yeh's Docker image however this one is kept up to date +# with the latest base image versions available + +FROM alpine:latest + +MAINTAINER shockrah :^) + +RUN apk --update add sudo python3 openssl ca-certificates openssh-client rsync && \ + apk --update add --virtual build-dependencies \ + python3-dev libffi-dev openssl-dev build-base && \ + python3 -m ensurepip && \ + pip3 install --upgrade pip cffi && \ + pip3 install ansible && \ + apk del build-dependencies && \ + rm -rf /var/cache/apk/* && \ + mkdir -p /etc/ansible && \ + echo localhost > /etc/ansible/hosts + + +CMD ["ansible-playbook", "--version"] + + + +