summaryrefslogtreecommitdiff
path: root/ansible/roles/holywood2/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/holywood2/tasks/main.yml')
-rw-r--r--ansible/roles/holywood2/tasks/main.yml49
1 files changed, 18 insertions, 31 deletions
diff --git a/ansible/roles/holywood2/tasks/main.yml b/ansible/roles/holywood2/tasks/main.yml
index f62f302..eb5e539 100644
--- a/ansible/roles/holywood2/tasks/main.yml
+++ b/ansible/roles/holywood2/tasks/main.yml
@@ -45,35 +45,22 @@
state: started
enabled: yes
-# - name: install borg
-# apt:
-# name: borgbackup
-# # default_release: stretch-backports
-
-# - name: install borg scripting
-# copy:
-# src: "{{ item }}"
-# dest: /root
-# owner: root
-# group: root
-# mode: 0755
-# with_items:
-# - run-borg
-# - borg-all
-
-# - name: install borg passphrase
-# copy:
-# content: "{{ lookup('pipe', 'pass borg/holywood2-to-willikins') }}"
-# dest: /etc/borg-passphrase
-# owner: root
-# group: root
-# mode: 0600
+- name: install backup scripting
+ copy:
+ src: "{{ item }}"
+ dest: /root
+ owner: root
+ group: root
+ mode: 0755
+ with_items:
+ - rsync-to-nalanda
+ - rsync-to-nalanda-all
-# - name: run borg from cron
-# copy:
-# content: |
-# 40 10 * * * root /root/borg-all
-# dest: /etc/cron.d/local-backup
-# owner: root
-# group: root
-# mode: 0755
+- name: run backups from cron
+ copy:
+ content: |
+ 40 10 * * * root /root/rsync-to-nalanda-all
+ dest: /etc/cron.d/local-backup
+ owner: root
+ group: root
+ mode: 0755