mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
16 lines
445 B
YAML
16 lines
445 B
YAML
---
|
|
- name: systemctl restart restic.timer
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: "restic-{{ item.name | replace(' ', '') | string }}.timer"
|
|
state: 'restarted'
|
|
daemon_reload: true
|
|
masked: false
|
|
with_items: '{{ restic_backups }}'
|
|
ignore_errors: true
|
|
tags: skip_ansible_lint
|
|
when:
|
|
- restic_create_schedule
|
|
- item.name is defined
|
|
- item.scheduled | default(false)
|
|
- ansible_service_mgr == 'systemd'
|