Feat: borgmatic on boot works in molecule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user