No auto init

This commit is contained in:
Manu 2023-03-11 11:27:37 +00:00
parent e3b22f1849
commit 3944aa17b8
2 changed files with 12 additions and 12 deletions

View File

@ -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:

View File

@ -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'"
# ...