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
5e61061b
Commit
5e61061b
authored
Mar 14, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mount manually too
parent
aabf0f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
install_k8s.yml
ansible_playbooks/install_k8s.yml
+32
-4
No files found.
ansible_playbooks/install_k8s.yml
View file @
5e61061b
...
...
@@ -55,7 +55,7 @@
filesystem
:
fstype
:
xfs
dev
:
/dev/xvdh
when
:
mount_volume.stat.exists == True
when
:
mount_volume.stat.exists == True
-
name
:
Creates directory
...
...
@@ -63,22 +63,50 @@
path
:
/data
state
:
directory
when
:
mount_volume.stat.exists == True
-
name
:
Mount
mount
:
path
:
/data
src
:
/dev/xvdh
state
:
present
fstype
:
xfs
when
:
mount_volume.stat.exists == True
when
:
mount_volume.stat.exists == True
-
name
:
check Mount
command
:
mountpoint -q /data
register
:
volume_stat
failed_when
:
False
changed_when
:
False
-
debug
:
msg
:
volume_stat.rc {{ volume_stat.rc }}
when
:
mount_volume.stat.exists
-
name
:
Mount manualy
shell
:
'
mount
/dev/xvdh
/data'
when
:
mount_volume.stat.exists
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
apt_key
:
...
...
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