feat(var): add restic_user_home
This commit is contained in:
parent
39930de0d1
commit
a60d2c2208
2 changed files with 5 additions and 6 deletions
|
@ -3,7 +3,8 @@
|
||||||
restic_install: false
|
restic_install: false
|
||||||
restic_version: 0.9.4
|
restic_version: 0.9.4
|
||||||
restic_path: /usr/local/bin/restic
|
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_repository_name: restic
|
||||||
restic_default_folders:
|
restic_default_folders:
|
||||||
|
@ -19,9 +20,7 @@ restic_check: true
|
||||||
|
|
||||||
restic_ssh_host: backup
|
restic_ssh_host: backup
|
||||||
restic_ssh_port: 22
|
restic_ssh_port: 22
|
||||||
restic_ssh_private_key_path: '~/.ssh/backup'
|
restic_ssh_private_key_path: '/root/.ssh/backup'
|
||||||
restic_ssh_public_key_path: '~/.ssh/backup.pub'
|
|
||||||
|
|
||||||
restic_user: root
|
|
||||||
restic_systemd_timer_on_calender: '*-*-* 03:00:00'
|
restic_systemd_timer_on_calender: '*-*-* 03:00:00'
|
||||||
restic_systemd_timer_randomized_delay_sec: 0
|
restic_systemd_timer_randomized_delay_sec: 0
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
- name: Overwrite SSH config for backup server
|
- name: Overwrite SSH config for backup server
|
||||||
template:
|
template:
|
||||||
src: ssh_config.j2
|
src: ssh_config.j2
|
||||||
dest: /root/.ssh/config
|
dest: "{{ restic_user_home }}/.ssh/config"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
- name: Add restic_env in home folder
|
- name: Add restic_env in home folder
|
||||||
template:
|
template:
|
||||||
src: restic_env.j2
|
src: restic_env.j2
|
||||||
dest: restic_env_file_path
|
dest: "{{ restic_user_home }}/.restic_env"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
Loading…
Reference in a new issue