Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-ansible-stage-one
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
ansible-networking-stage
kypo-ansible-stage-one
Commits
acd0e4bd
Commit
acd0e4bd
authored
2 years ago
by
Michal Urban
Browse files
Options
Downloads
Patches
Plain Diff
Docker in definition
parent
bae23275
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitmodules
+6
-0
6 additions, 0 deletions
.gitmodules
provisioning/playbook.yml
+41
-0
41 additions, 0 deletions
provisioning/playbook.yml
provisioning/roles/docker
+1
-0
1 addition, 0 deletions
provisioning/roles/docker
provisioning/roles/docker-compose
+1
-0
1 addition, 0 deletions
provisioning/roles/docker-compose
with
49 additions
and
0 deletions
.gitmodules
+
6
−
0
View file @
acd0e4bd
...
...
@@ -16,3 +16,9 @@
[submodule "provisioning/roles/kypo-user-access-windows"]
path = provisioning/roles/kypo-user-access-windows
url = https://gitlab.ics.muni.cz/muni-kypo-crp/backend-python/ansible-networking-stage/kypo-user-access-windows
[submodule "provisioning/roles/docker-compose"]
path = provisioning/roles/docker-compose
url = https://gitlab.ics.muni.cz/muni-kypo/ansible-roles/docker-compose
[submodule "provisioning/roles/docker"]
path = provisioning/roles/docker
url = https://gitlab.ics.muni.cz/CSIRT-MU-PUBLIC/ansible-roles/docker
This diff is collapsed.
Click to expand it.
provisioning/playbook.yml
+
41
−
0
View file @
acd0e4bd
...
...
@@ -356,3 +356,44 @@
-
name
:
reboot machine
win_reboot
:
when
:
win_hostname_return_value.reboot_required
-
name
:
Prepare docker enabled machines
hosts
:
-
docker_hosts
become
:
yes
roles
:
-
role
:
kypo-user-access
kypo_user_access_username
:
kypo-user
kypo_user_access_ssh_public_key_options
:
'
restrict,port-forwarding,command="/usr/sbin/nologin"'
tasks
:
-
name
:
Install required system packages for Docker
apt
:
name
:
gnupg-agent
state
:
latest
update_cache
:
yes
-
name
:
Install docker-compose
include_role
:
name
:
docker-compose
-
name
:
Add administrator to docker group
user
:
name
:
"
{{
ansible_user
}}"
groups
:
docker
append
:
yes
-
name
:
Copy user public key to remote machine
copy
:
src
:
"
{{
kypo_global_ssh_public_user_key
}}"
dest
:
"
/home/kypo-user/.ssh/user_rsa.pub"
-
name
:
Copy docker container directory to remote machine
copy
:
src
:
"
{{
containers_path
}}"
dest
:
"
/home/kypo-user/containers"
-
name
:
Build docker containers
community.docker.docker_compose
:
project_src
:
"
/home/kypo-user/containers/"
This diff is collapsed.
Click to expand it.
docker
@
b03308ef
Subproject commit b03308ef7c89348216bf349c833cf3ce0a006bd3
This diff is collapsed.
Click to expand it.
docker-compose
@
7a9f2ce4
Subproject commit 7a9f2ce48aae64b2ae16e6583fc79a5def48eaa6
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