This commit is contained in:
Leonidas Avdelas 2025-11-18 10:42:06 +02:00 committed by GitHub
commit 4ceab77b91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -17,13 +17,15 @@
owner: "{{ borg_user }}"
group: "{{ borg_group }}"
comment: "{{ borg_ssh_key_comment }}"
when: borg_ssh_key_file_path is defined and borg_ssh_key_file_path | length > 0
- name: Read SSH key
ansible.builtin.slurp:
src: "{{ borg_ssh_key_file_path }}.pub"
register: backup_local_ssh_key
when: borg_ssh_key_file_path is defined and borg_ssh_key_file_path | length > 0
- name: Print key
ansible.builtin.debug:
msg: "The generated key is: {{ backup_local_ssh_key['content'] | b64decode }}"
...
when: borg_ssh_key_file_path is defined and borg_ssh_key_file_path | length > 0

View File

@ -16,4 +16,4 @@
mode: "0600"
owner: "{{ borg_user }}"
group: "{{ borg_group }}"
...
when: borgmatic_config_name is defined and borgmatic_config_name | length > 0