Added dockerfile and moved scripts

This commit is contained in:
Lino Silva
2024-03-14 11:47:02 +00:00
parent 53ebce22a8
commit 44e61000c5
7 changed files with 23 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM ubuntu:20.04 as base
ENV ANSIBLE_VERSION 2.9.17
RUN apt-get update; \
apt-get install -y gcc python3 sshpass; \
apt-get install -y python3-pip; \
apt-get clean all
RUN pip3 install --upgrade pip; \
pip3 install "ansible==${ANSIBLE_VERSION}"; \
pip3 install ansible;
FROM base as update
WORKDIR /ansible
COPY . .