mirror of
https://github.com/Infisical/ansible-collection.git
synced 2025-08-08 15:14:24 -07:00
25 lines
No EOL
503 B
Docker
25 lines
No EOL
503 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV ANSIBLE_HOST_KEY_CHECKING=false
|
|
ENV ANSIBLE_STDOUT_CALLBACK=yaml
|
|
ENV ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
|
|
|
ARG VERSION
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
openssh-client \
|
|
sshpass \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --no-cache-dir ansible infisicalsdk
|
|
|
|
RUN ansible-galaxy collection install infisical.vault==${VERSION}
|
|
|
|
WORKDIR /ansible
|
|
|
|
RUN mkdir -p /root/.ansible
|
|
|
|
# Set default command
|
|
CMD ["/bin/bash"] |