Feat: rename templates and add borgmatic_name
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
- name: Borgmatic config
|
||||
template:
|
||||
src: borgmatic.config.yaml.j2
|
||||
src: config.yaml.j2
|
||||
dest: "{{ borgmatic_config_file }}"
|
||||
mode: 644
|
||||
|
||||
@@ -45,14 +45,14 @@
|
||||
|
||||
- name: copy systemd service
|
||||
template:
|
||||
src: borgmatic.service.j2
|
||||
src: service.j2
|
||||
dest: "/lib/systemd/system/borgmatic_{{ borgmatic_name }}.service"
|
||||
mode: 644
|
||||
notify: "reload systemd"
|
||||
|
||||
- name: copy systemd timer for executing borgmatic after boot
|
||||
template:
|
||||
src: borgmatic.afterboot.timer.j2
|
||||
src: afterboot.timer.j2
|
||||
dest: "/lib/systemd/system/borgmatic_{{ borgmatic_name }}.timer"
|
||||
notify: "reload systemd"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user