Initial commit

This commit is contained in:
Nils Cant
2019-08-28 11:53:32 +02:00
commit f4b4201902
5 changed files with 90 additions and 0 deletions

16
tasks/main.yml Normal file
View File

@@ -0,0 +1,16 @@
- name: Install borgbackup
apt:
name: borgbackup
- name: Generate ssh keypair for root user
command: ssh-keygen -b 4096 -t rsa -q -N "" -f /root/.ssh/id_rsa
args:
creates: /root/.ssh/id_rsa
- name: Backup script
template:
src: borgbackup-run.j2
dest: /usr/local/sbin/borgbackup-run
owner: root
group: root
mode: 0700