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
a8ffaf0d
Commit
a8ffaf0d
authored
Mar 14, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move add data-root after installing docker
parent
5e61061b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
19 deletions
+14
-19
install_k8s.yml
ansible_playbooks/install_k8s.yml
+14
-19
No files found.
ansible_playbooks/install_k8s.yml
View file @
a8ffaf0d
...
@@ -90,23 +90,6 @@
...
@@ -90,23 +90,6 @@
when
:
mount_volume.stat.exists
when
:
mount_volume.stat.exists
ignore_errors
:
yes
ignore_errors
:
yes
-
name
:
Change data-root location in /etc/docker/daemon.json
shell
:
|
echo '{"data-root": "/data"}' > /etc/docker/daemon.json
when
:
mount_volume.stat.exists == True
-
name
:
Restart service docker, in all cases
service
:
name
:
docker
state
:
restarted
ignore_errors
:
yes
#- name: Get size
#shell: 'df -h'
#register: output
#when: mount_volume.stat.exists == True
-
name
:
Add Docker GPG apt Key
-
name
:
Add Docker GPG apt Key
apt_key
:
apt_key
:
...
@@ -122,6 +105,18 @@
...
@@ -122,6 +105,18 @@
-
name
:
Update apt and install docker-ce
-
name
:
Update apt and install docker-ce
apt
:
update_cache=yes name=docker-ce state=latest
apt
:
update_cache=yes name=docker-ce state=latest
-
name
:
Change data-root location in /etc/docker/daemon.json
shell
:
|
echo '{"data-root": "/data"}' > /etc/docker/daemon.json
when
:
mount_volume.stat.exists == True
-
name
:
Restart service docker, in all cases
service
:
name
:
docker
state
:
restarted
ignore_errors
:
yes
when
:
mount_volume.stat.exists == True
-
name
:
Update and upgrade apt packages
-
name
:
Update and upgrade apt packages
apt
:
apt
:
upgrade
:
yes
upgrade
:
yes
...
...
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