Feat: rename templates and add borgmatic_name

This commit is contained in:
2022-03-13 14:36:23 +01:00
parent c23bebed74
commit 2ffabd234a
4 changed files with 9 additions and 6 deletions

View File

@@ -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"