Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-ansible-runner
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-python
kypo-ansible-runner
Commits
e45fbfc8
Commit
e45fbfc8
authored
4 years ago
by
Kamil Andoniadis
Committed by
Daniel Tovarňák
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Add support for communication with Windows machines"
parent
a9cfbb79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-5
3 additions, 5 deletions
Dockerfile
kypo-ansible-runner.sh
+2
-0
2 additions, 0 deletions
kypo-ansible-runner.sh
with
5 additions
and
5 deletions
Dockerfile
+
3
−
5
View file @
e45fbfc8
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/
...
...
This diff is collapsed.
Click to expand it.
kypo-ansible-runner.sh
+
2
−
0
View file @
e45fbfc8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment