18 lines
507 B
YAML
18 lines
507 B
YAML
---
|
|
- name: Create new borg ID ssh keyfiles
|
|
community.crypto.openssh_keypair:
|
|
path: "/root/.ssh/borg-id"
|
|
type: ed25519
|
|
comment: "{{ inventory_hostname }} borg backup key"
|
|
become: true
|
|
register: public_key
|
|
|
|
- name: Show key info message
|
|
ansible.builtin.debug:
|
|
msg:
|
|
- "Please authorize the following public key to your borg backup server:"
|
|
- "---"
|
|
- "{{ public_key }}"
|
|
- "---"
|
|
- "##### ATTENTION: Until this key is registered no backups will work! #####"
|