various fix

switch from cron to systemd
bypass hadoly anubis protection
This commit is contained in:
2026-02-15 10:00:59 +01:00
parent c111d737bb
commit 5b57905b21
5 changed files with 26 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
owner: root
group: root
- name: create repo
- name: create repo directory
file:
path: "{{ borg_remote_dir }}{{ inventory_hostname }}"
state: directory
@@ -37,15 +37,13 @@
delegate_to: "{{ borg_server }}"
- name: check if repository is created
tags: wip
delegate_to: "{{ borg_server }}"
ansible.builtin.stat:
path: "{{ borg_remote_dir }}{{ inventory_hostname }}/config"
register: repo_content
- name: create repository
tags: wip
when: repo_content.stat.isfile is not defined
when: repo_content.stat.exists == false
ansible.builtin.command: "/usr/bin/borg init --encryption=keyfile {{ borg_account }}@{{ borg_server }}:{{ borg_remote_dir }}{{ inventory_hostname }}"
environment:
BORG_PASSPHRASE: "{{ borg_passphrase }}"