diff options
Diffstat (limited to 'shutdown.yaml')
-rw-r--r-- | shutdown.yaml | 17 |
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 |