2021-07-07 11:20:37 +02:00
|
|
|
---
|
|
|
|
- name: systemctl restart restic.timer
|
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "restic-{{ item.name | replace(' ', '') | string }}.timer"
|
|
|
|
state: 'restarted'
|
|
|
|
daemon_reload: true
|
2021-08-02 14:13:30 +02:00
|
|
|
masked: false
|
2021-07-07 11:20:37 +02:00
|
|
|
with_items: '{{ restic_backups }}'
|
2021-08-03 23:16:34 +02:00
|
|
|
ignore_errors: true
|
2022-01-10 14:31:25 +01:00
|
|
|
tags: skip_ansible_lint
|
2021-07-07 11:20:37 +02:00
|
|
|
when:
|
2021-08-02 01:09:02 +02:00
|
|
|
- restic_create_schedule
|
2021-07-07 11:20:37 +02:00
|
|
|
- item.name is defined
|
|
|
|
- item.scheduled | default(false)
|
|
|
|
- ansible_service_mgr == 'systemd'
|