diff --git a/tasks/02_user_management.yml b/tasks/02_user_management.yml index d439d41..3dc059c 100644 --- a/tasks/02_user_management.yml +++ b/tasks/02_user_management.yml @@ -2,7 +2,7 @@ # So in different positions in that role we need the user home # Since we cannot be sure that this FSH is compatible we will determine it. - name: Get home dir - when: + when: - borgbackup_user == "root" - install_backup is not defined or install_backup tags: @@ -18,10 +18,10 @@ - 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: + when: - borgbackup_user == "root" - install_backup is not defined or install_backup tags: diff --git a/tasks/06_init_borg_repo.yml b/tasks/06_init_borg_repo.yml index a1b2bda..eb56e2e 100644 --- a/tasks/06_init_borg_repo.yml +++ b/tasks/06_init_borg_repo.yml @@ -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'" +# ...