mirror of
https://github.com/Infisical/ansible-collection.git
synced 2025-08-05 05:34:27 -07:00
feat: ansible docker image
This commit is contained in:
parent
510e8c666f
commit
89ab21f235
3 changed files with 59 additions and 8 deletions
25
docker/Dockerfile
Normal file
25
docker/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
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"]
|
Loading…
Add table
Add a link
Reference in a new issue