feat(var): add restic_user_home

This commit is contained in:
angristan 2019-03-21 11:51:21 +01:00
parent 39930de0d1
commit a60d2c2208
2 changed files with 5 additions and 6 deletions

View file

@ -3,7 +3,8 @@
restic_install: false
restic_version: 0.9.4
restic_path: /usr/local/bin/restic
restic_env_file_path: /root/.restic_env
restic_user: root
restic_user_home: /root
restic_repository_name: restic
restic_default_folders:
@ -19,9 +20,7 @@ restic_check: true
restic_ssh_host: backup
restic_ssh_port: 22
restic_ssh_private_key_path: '~/.ssh/backup'
restic_ssh_public_key_path: '~/.ssh/backup.pub'
restic_ssh_private_key_path: '/root/.ssh/backup'
restic_user: root
restic_systemd_timer_on_calender: '*-*-* 03:00:00'
restic_systemd_timer_randomized_delay_sec: 0

View file

@ -11,7 +11,7 @@
- name: Overwrite SSH config for backup server
template:
src: ssh_config.j2
dest: /root/.ssh/config
dest: "{{ restic_user_home }}/.ssh/config"
owner: root
group: root
mode: 0600
@ -26,7 +26,7 @@
- name: Add restic_env in home folder
template:
src: restic_env.j2
dest: restic_env_file_path
dest: "{{ restic_user_home }}/.restic_env"
owner: root
group: root
mode: 0600