Files
ansible/docker/ansible-playbook.Dockerfile
Márcio Fernandes 5a09267782
All checks were successful
/ build-docker-image (push) Successful in 7s
.
2024-09-05 08:45:26 +01:00

19 lines
517 B
Docker

FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install -y gcc python3-dev
RUN apt-get install -y openssh-client
RUN apt-get install python3-pip -y
RUN apt-get install python3-virtualenv -y
RUN pip3 install ansible --break-system-packages
RUN pip3 install ansible-runner --break-system-packages
RUN mkdir /workspace
RUN mkdir /scripts
RUN mkdir /data
COPY scripts /scripts
COPY playbook-sample-workspace /workspace
ENTRYPOINT ["python3", "/scripts/run-ansible-playbook.py"]