2022-10-31 20:30:26 +01:00
|
|
|
FROM debian:bookworm-slim
|
2022-11-02 22:15:31 +01:00
|
|
|
RUN apt-get update --yes && apt-get upgrade --yes && apt-get install --yes python3 python3-pip openssh-client sshpass && rm -rf /var/lib/apt/lists/*
|
2022-10-31 20:30:26 +01:00
|
|
|
RUN groupadd -r ansible && useradd -m -r -g ansible ansible
|
|
|
|
USER ansible
|
|
|
|
RUN pip install ansible
|
|
|
|
WORKDIR /home/ansible
|
|
|
|
ENV PATH="${PATH}:/home/ansible/.local/bin"
|
2022-11-02 22:15:31 +01:00
|
|
|
COPY --chown=ansible:ansible . /home/ansible
|
|
|
|
RUN ansible-galaxy install -vvvv -r requirements.yml
|