aboutsummaryrefslogtreecommitdiff
path: root/shutdown.yaml
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-10 12:15:49 -0300
committerEuAndreh <eu@euandre.org>2020-08-10 12:45:43 -0300
commit100ab568e3aeb512e86fd1155a73454d22e24895 (patch)
tree1d7ff9168b8cfc60e173f2a19f30938bc68d0f6e /shutdown.yaml
parentWIP: Move to Vultr and NixOS (diff)
downloadserver-100ab568e3aeb512e86fd1155a73454d22e24895.tar.gz
server-100ab568e3aeb512e86fd1155a73454d22e24895.tar.xz
Migration: Remove Ansible and Docker code, move only to NixOS
Diffstat (limited to '')
-rw-r--r--shutdown.yaml17
1 files changed, 0 insertions, 17 deletions
diff --git a/shutdown.yaml b/shutdown.yaml
deleted file mode 100644
index a190d1a..0000000
--- a/shutdown.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-- hosts: all
- any_errors_fatal: true
- tasks:
- - name: Copy files for performing the backup
- copy: src={{ item.src }} dest={{ item.dest }} mode={{ item.mode }}
- with_items:
- - { src: './generated/create-backup.sh', dest: '/home/vps/create-backup.sh', mode: '500' }
- - { src: './secrets/borg/borg-remote.pub', dest: '/root/.ssh/id_rsa.pub', mode: '400' }
- - { src: './secrets/borg/borg-remote', dest: '/root/.ssh/id_rsa', mode: '400' }
- - { src: './secrets/borg/known-hosts.txt', dest: '/root/.ssh/known_hosts', mode: '400' }
- - name: Stop docker-compose
- docker_compose:
- project_src: /home/vps/
- state: absent
- - name: Create a borg backup of the volume
- shell: /home/vps/create-backup.sh