Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
780ba7da
Commit
780ba7da
authored
Dec 14, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docker log in
parent
cdd38b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
set_dockerhub_credentials2.yml
docs/playbooks/set_dockerhub_credentials2.yml
+41
-0
No files found.
docs/playbooks/set_dockerhub_credentials2.yml
0 → 100644
View file @
780ba7da
---
-
hosts
:
all
tasks
:
-
name
:
Update aptitude
apt
:
{
name
:
aptitude
}
become
:
true
register
:
result
-
name
:
update and upgrade
apt
:
{
update_cache
:
true
,
upgrade
:
true
,
autoremove
:
true
,
force
:
true
}
become
:
true
register
:
result
-
name
:
install pre-req
apt
:
name="{{ item }}" state=latest
with_items
:
[
python
,
curl
,
python-pip
,
apt-transport-https
,
linux-image-extra-virtual
,
linux-image-extra-4.4.0-97-generic
,
ca-certificates
,
software-properties-common
]
become
:
true
register
:
result
-
name
:
Add key
apt_key
:
{
url
:
'
https://download.docker.com/linux/ubuntu/gpg'
,
state
:
present
}
become
:
true
register
:
result
-
name
:
add repo
apt_repository
:
{
repo
:
'
deb
https://download.docker.com/linux/ubuntu
xenial
stable'
,
state
:
present
}
become
:
true
register
:
result
-
name
:
update and upgrade
apt
:
{
update_cache
:
true
,
upgrade
:
true
,
autoremove
:
true
,
force
:
true
}
become
:
true
register
:
result
-
name
:
install docker-ce
apt
:
name="{{ item }}" state=latest
with_items
:
[
docker-ce
]
become
:
true
-
{
name
:
run
,
command
:
"
docker
login
-u
USER
-p
PASS"
,
become
:
true
}
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