Compare commits
2 Commits
3d4f2773a8
...
8e27769f5b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e27769f5b | ||
|
|
9856bc2087 |
@@ -7,7 +7,7 @@
|
||||
- name: debian
|
||||
version_min: 11
|
||||
- name: ubuntu
|
||||
version_min: 24
|
||||
version_min: 22
|
||||
|
||||
- name: Install unatteded-upgrades
|
||||
ansible.builtin.apt:
|
||||
|
||||
@@ -12,12 +12,14 @@
|
||||
- name: Install borgmatic
|
||||
ansible.builtin.apt:
|
||||
name: borgmatic
|
||||
register: _borgmatic_install
|
||||
|
||||
- name: Disable borgmatic global timer
|
||||
ansible.builtin.systemd_service:
|
||||
name: borgmatic.timer
|
||||
state: stopped
|
||||
enabled: false
|
||||
when: "not (ansible_check_mode and _borgmatic_install.changed)"
|
||||
|
||||
- name: Add systemd drop-in service for borgmatic
|
||||
ansible.builtin.template:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
- name: Gather facts
|
||||
ansible.builtin.setup:
|
||||
delegate_facts: true
|
||||
retries: 3
|
||||
|
||||
- name: Add ssh key to authorized_keys
|
||||
ansible.posix.authorized_key:
|
||||
|
||||
@@ -4,3 +4,4 @@
|
||||
name: "borgmatic@{{ borgmatic_config_name }}.timer"
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
|
||||
@@ -32,4 +32,4 @@
|
||||
name: borgmatic@{{ borgmatic_config_name }}.timer
|
||||
state: started
|
||||
enabled: true
|
||||
when: "not (ansible_check_mode and _borgmatic_config_systemd_timer.changed and _borgmatic_config_systemd_timer.diff.before == '')"
|
||||
when: "not (ansible_check_mode and _borgmatic_config_systemd_timer.changed)"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
- name: debian
|
||||
version_min: 11
|
||||
- name: ubuntu
|
||||
version_min: 24
|
||||
version_min: 22
|
||||
- name: fedora
|
||||
version_min: 39
|
||||
|
||||
|
||||
Reference in New Issue
Block a user