14 lines
434 B
YAML
14 lines
434 B
YAML
---
|
|
- name: Initialize borgmatic
|
|
ansible.builtin.command:
|
|
cmd: borgmatic init --encryption repokey
|
|
register: _borgmatic_init_out
|
|
changed_when: _borgmatic_init_out.stdout | length > 0
|
|
|
|
- name: Restart borgmatic timer {{ borgmatic_config_name }}
|
|
ansible.builtin.systemd_service:
|
|
name: "borgmatic@{{ borgmatic_config_name }}.timer"
|
|
state: restarted
|
|
daemon_reload: true
|
|
ignore_errors: "{{ ansible_check_mode }}"
|