Feat: borgmatic on boot works in molecule

This commit is contained in:
2022-03-13 11:20:57 +01:00
parent a4688b6f99
commit c23bebed74
4 changed files with 12 additions and 50 deletions

View File

@@ -48,7 +48,7 @@
src: borgmatic.service.j2
dest: "/lib/systemd/system/borgmatic_{{ borgmatic_name }}.service"
mode: 644
notify: reload systemd
notify: "reload systemd"
- name: copy systemd timer for executing borgmatic after boot
template:
@@ -56,7 +56,12 @@
dest: "/lib/systemd/system/borgmatic_{{ borgmatic_name }}.timer"
notify: "reload systemd"
- name: disable service
systemd:
name: "borgmatic_{{ borgmatic_name }}.service"
enabled: no
- name: enable timer
systemd:
name: "borgmatic_{{ borgmatic_name }}"
name: "borgmatic_{{ borgmatic_name }}.timer"
enabled: yes