mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-05-20 01:15:09 +02:00
No auto init
This commit is contained in:
parent
e3b22f1849
commit
3944aa17b8
@ -18,7 +18,7 @@
|
||||
|
||||
- name: Save the user_info, we need them for the home_dir
|
||||
ansible.builtin.set_fact:
|
||||
backup_user_info: "{{ user_info }}"
|
||||
backup_user_info: "{{ user_info }}"
|
||||
|
||||
- name: Create User if borgbackup_user != "root"
|
||||
when:
|
||||
|
@ -1,10 +1,10 @@
|
||||
---
|
||||
- name: Init repository
|
||||
when:
|
||||
- install_backup is not defined or install_backup
|
||||
- borgmatic_initialization_repo is not defined or borgmatic_initialization_repo
|
||||
tags:
|
||||
- install_backup
|
||||
ansible.builtin.command:
|
||||
cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'"
|
||||
...
|
||||
# - name: Init repository
|
||||
# when:
|
||||
# - install_backup is not defined or install_backup
|
||||
# - borgmatic_initialization_repo is not defined or borgmatic_initialization_repo
|
||||
# tags:
|
||||
# - install_backup
|
||||
# ansible.builtin.command:
|
||||
# cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'"
|
||||
# ...
|
||||
|
Loading…
Reference in New Issue
Block a user