From cbe8d0c2c412bacb9c0c65ba8b67f02d49e6bae1 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 3 Nov 2024 17:31:40 +0800 Subject: [PATCH] Add backup playbook --- roles/tasks/debian/start_backups.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 roles/tasks/debian/start_backups.yml diff --git a/roles/tasks/debian/start_backups.yml b/roles/tasks/debian/start_backups.yml new file mode 100644 index 0000000..b227e26 --- /dev/null +++ b/roles/tasks/debian/start_backups.yml @@ -0,0 +1,8 @@ +--- +- hosts: + - debian + # Runs on root user already + become: false + tasks: + - name: Start Backups + command: tmux new-session -d -s "Borg Backups" "bash /root/scripts/backup.sh"