mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-11-15 08:00:18 +01:00
13 lines
375 B
YAML
13 lines
375 B
YAML
---
|
|
- name: systemctl restart restic.timer
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: "restic-{{ item.name | replace(' ', '') | string }}.timer"
|
|
state: 'restarted'
|
|
daemon_reload: true
|
|
with_items: '{{ restic_backups }}'
|
|
when:
|
|
- restic_create_cron
|
|
- item.name is defined
|
|
- item.scheduled | default(false)
|
|
- ansible_service_mgr == 'systemd'
|