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 - name: Save the user_info, we need them for the home_dir
ansible.builtin.set_fact: ansible.builtin.set_fact:
backup_user_info: "{{ user_info }}" backup_user_info: "{{ user_info }}"
- name: Create User if borgbackup_user != "root" - name: Create User if borgbackup_user != "root"
when: when:

View File

@ -1,10 +1,10 @@
--- ---
- name: Init repository # - name: Init repository
when: # when:
- install_backup is not defined or install_backup # - install_backup is not defined or install_backup
- borgmatic_initialization_repo is not defined or borgmatic_initialization_repo # - borgmatic_initialization_repo is not defined or borgmatic_initialization_repo
tags: # tags:
- install_backup # - install_backup
ansible.builtin.command: # ansible.builtin.command:
cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'" # cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'"
... # ...