aboutsummaryrefslogtreecommitdiff
path: root/provision.yaml
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-05 20:22:09 -0300
committerEuAndreh <eu@euandre.org>2019-06-05 20:22:09 -0300
commit58d869f3ca3c980897e62cef55cda4fdf932affb (patch)
tree275f0bb6ceae93f5de4e6c2ebcfc206023600161 /provision.yaml
parentAlways destroy infrastructure before applying (diff)
downloadserver-58d869f3ca3c980897e62cef55cda4fdf932affb.tar.gz
server-58d869f3ca3c980897e62cef55cda4fdf932affb.tar.xz
Add volume to VPS
Don't destroy everything on deploy. This would destroy the volume too.
Diffstat (limited to '')
-rw-r--r--provision.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/provision.yaml b/provision.yaml
index 636e6d1..2ff7c6c 100644
--- a/provision.yaml
+++ b/provision.yaml
@@ -19,6 +19,11 @@
file:
path: /home/vps/
state: directory
+ - name: Create symlink to attached volume
+ file:
+ src: /mnt/vps_persistent_volume
+ dest: /home/vps/volumes
+ state: link
- name: Copy file
copy: src={{ item.src }} dest={{ item.dest }}
with_items: