mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-05-20 01:15:09 +02:00
reworked timer install logic
This commit is contained in:
parent
05baedc841
commit
7414f85e39
22
tasks/05_install_timer.yml
Normal file
22
tasks/05_install_timer.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- name: Create borgbackup timer
|
||||||
|
when:
|
||||||
|
- install_backup is not defined or install_backup
|
||||||
|
- borgmatic_timer is defined and borgmatic_timer == "systemd"
|
||||||
|
tags:
|
||||||
|
- install_backup
|
||||||
|
block:
|
||||||
|
- name: Timer Systemd
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: noauto_create_timer.yml
|
||||||
|
|
||||||
|
- name: Create borgbackup cron
|
||||||
|
when:
|
||||||
|
- install_backup is not defined or install_backup
|
||||||
|
- borgmatic_timer is defined or not borgmatic_timer == "systemd"
|
||||||
|
tags:
|
||||||
|
- install_backup
|
||||||
|
block:
|
||||||
|
- name: Install cron backup job
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: noauto_create_cronjobs.yml
|
Loading…
Reference in New Issue
Block a user