Print out key if borgmatic_initialization_repo is false

This commit is contained in:
Frank Dornheim 2023-03-11 23:29:27 +01:00
parent 20f5a6f7b2
commit 35e7481da2

View File

@ -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 }}"
...