run all backup tasks in a slice
This commit is contained in:
parent
d351573a3b
commit
4c54a80122
6 changed files with 61 additions and 3 deletions
|
|
@ -35,6 +35,15 @@
|
|||
loop: "{{ backups }}"
|
||||
when: item.user is defined
|
||||
|
||||
- name: Ensure backup slice unit is present
|
||||
ansible.builtin.copy:
|
||||
src: "backup.slice"
|
||||
dest: "/etc/systemd/system/backup.slice"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Reload systemd
|
||||
|
||||
- name: Ensure systemd service unit is present for each backup
|
||||
ansible.builtin.template:
|
||||
src: "backup.service.j2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue