Skip to content
Snippets Groups Projects
Commit b32a75ff authored by Daniel Tovarňák's avatar Daniel Tovarňák
Browse files

Merge branch '10-add-support-for-communication-with-windows-machines' into 'master'

Resolve "Add support for communication with Windows machines"

Closes #10

See merge request muni-kypo-crp/backend-python/kypo-ansible-runner!12
parents a9cfbb79 e45fbfc8
Branches
Tags
No related merge requests found
FROM debian:buster-slim FROM python:3.8-slim-buster
ENV ANSIBLE_STDOUT_CALLBACK=default ENV ANSIBLE_STDOUT_CALLBACK=default
ENV ANSIBLE_RETRY_FILES_ENABLED=0 ENV ANSIBLE_RETRY_FILES_ENABLED=0
ENV ANSIBLE_SSH_RETRIES=20 ENV ANSIBLE_SSH_RETRIES=20
ENV ANSIBLE_SSH_ARGS="-o ServerAliveInterval=30 -o ControlMaster=auto -o ControlPersist=60s" ENV ANSIBLE_SSH_ARGS="-o ServerAliveInterval=30 -o ControlMaster=auto -o ControlPersist=60s"
RUN apt update && apt install -y gnupg2 && \ RUN apt update && apt install -y gnupg2 git autossh
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 ansible git RUN pip3 install ansible==3.0.0 pypsrp requests[socks]
RUN rm -rf /var/cache/apt/ RUN rm -rf /var/cache/apt/
......
...@@ -62,6 +62,8 @@ if [ -f $REQUIREMENTS_FILE ]; then ...@@ -62,6 +62,8 @@ if [ -f $REQUIREMENTS_FILE ]; then
ansible-galaxy install -r $REQUIREMENTS_FILE -p roles || exit 1 ansible-galaxy install -r $REQUIREMENTS_FILE -p roles || exit 1
fi fi
autossh -M 12234 -f -N -D 12345 man
PRE_PLAYBOOK_FILE="pre-playbook.yml" PRE_PLAYBOOK_FILE="pre-playbook.yml"
if [ -f $PRE_PLAYBOOK_FILE ]; then if [ -f $PRE_PLAYBOOK_FILE ]; then
ansible-playbook $PRE_PLAYBOOK_FILE -i "${INVENTORY_FILE}" -vv 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