Initial commit
This commit is contained in:
16
tasks/main.yml
Normal file
16
tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user