Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
39e136a3
Commit
39e136a3
authored
Dec 08, 2016
by
George Song
Committed by
Kevin Falcone
Dec 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add role for installing Docker tools
parent
7c95c096
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
playbooks/roles/docker-tools/defaults/main.yml
+13
-0
playbooks/roles/docker-tools/tasks/main.yml
+44
-0
No files found.
playbooks/roles/docker-tools/defaults/main.yml
0 → 100644
View file @
39e136a3
cache_valid_time
:
3600
docker_tools_deps_deb_pkgs
:
-
apt-transport-https
-
ca-certificates
-
python-pip
docker_apt_keyserver
:
"
hkp://ha.pool.sks-keyservers.net:80"
docker_apt_key_id
:
"
58118E89F3A912897C070ADBF76221572C52609D"
docker_repo
:
"
deb
https://apt.dockerproject.org/repo
ubuntu-xenial
main"
docker_group
:
"
docker"
docker_users
:
[]
playbooks/roles/docker-tools/tasks/main.yml
0 → 100644
View file @
39e136a3
# Install docker-engine and docker-compose
# Add users to docker group
---
-
name
:
add docker group
group
:
name
:
"
{{
docker_group
}}"
-
name
:
add users to docker group
user
:
name
:
"
{{
item
}}"
groups
:
"
{{
docker_group
}}"
append
:
yes
with_items
:
"
{{
docker_users
}}"
-
name
:
install package dependencies
apt
:
name
:
"
{{
docker_tools_deps_deb_pkgs
}}"
update_cache
:
yes
cache_valid_time
:
"
{{
cache_valid_time
}}"
-
name
:
add docker apt key
apt_key
:
keyserver
:
"
{{
docker_apt_keyserver
}}"
id
:
"
{{
docker_apt_key_id
}}"
-
name
:
add docker repo
apt_repository
:
repo
:
"
{{
docker_repo
}}"
-
name
:
install docker-engine
apt
:
name
:
"
docker-engine"
update_cache
:
yes
cache_valid_time
:
"
{{
cache_valid_time
}}"
-
name
:
start docker service
service
:
name
:
docker
enabled
:
yes
state
:
started
-
name
:
install docker-compose
pip
:
name
:
"
docker-compose"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment