From 58d869f3ca3c980897e62cef55cda4fdf932affb Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Jun 2019 20:22:09 -0300 Subject: Add volume to VPS Don't destroy everything on deploy. This would destroy the volume too. --- provision.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'provision.yaml') 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: -- cgit v1.3