mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-05-24 01:17:15 +02:00
Print out key if borgmatic_initialization_repo is false
This commit is contained in:
parent
20f5a6f7b2
commit
35e7481da2
@ -50,4 +50,9 @@
|
||||
state: present
|
||||
key: "{{ backup_local_ssh_key['content'] | b64decode }}"
|
||||
delegate_to: "{{ borg_repository | regex_search('@(.*):', '\\1') | first }}" # part b)
|
||||
|
||||
- name: Print key if the borgmatic_initialization_repo is false
|
||||
when: borgmatic_initialization_repo is not defined or not borgmatic_initialization_repo
|
||||
ansible.builtin.debug:
|
||||
msg: "The generated key is: {{ backup_local_ssh_key['content'] | b64decode }}"
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user