Skip to content
Snippets Groups Projects
Commit e45fbfc8 authored by Kamil Andoniadis's avatar Kamil Andoniadis Committed by Daniel Tovarňák
Browse files

Resolve "Add support for communication with Windows machines"

parent a9cfbb79
No related branches found
No related tags found
No related merge requests found
FROM debian:buster-slim
FROM python:3.8-slim-buster
ENV ANSIBLE_STDOUT_CALLBACK=default
ENV ANSIBLE_RETRY_FILES_ENABLED=0
ENV ANSIBLE_SSH_RETRIES=20
ENV ANSIBLE_SSH_ARGS="-o ServerAliveInterval=30 -o ControlMaster=auto -o ControlPersist=60s"
RUN apt update && apt install -y gnupg2 && \
echo "deb http://ppa.launchpad.net/ansible/ansible-2.8/ubuntu trusty main" > /etc/apt/sources.list.d/ansible.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
RUN apt update && apt install -y gnupg2 git autossh
RUN apt update && apt install -y ansible git
RUN pip3 install ansible==3.0.0 pypsrp requests[socks]
RUN rm -rf /var/cache/apt/
......
......@@ -62,6 +62,8 @@ if [ -f $REQUIREMENTS_FILE ]; then
ansible-galaxy install -r $REQUIREMENTS_FILE -p roles || exit 1
fi
autossh -M 12234 -f -N -D 12345 man
PRE_PLAYBOOK_FILE="pre-playbook.yml"
if [ -f $PRE_PLAYBOOK_FILE ]; then
ansible-playbook $PRE_PLAYBOOK_FILE -i "${INVENTORY_FILE}" -vv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment