10 lines
397 B
YAML
10 lines
397 B
YAML
---
|
|
- name: "Storagebox | Read key from file"
|
|
ansible.builtin.command:
|
|
cmd: "cat {{ borg_ssh_key_file_path }}.pub"
|
|
register: ssh_key
|
|
|
|
- name: "Storagebox | Copy key to Hetzner"
|
|
ansible.builtin.command:
|
|
cmd: "echo {{ ssh_key.stdout_lines }} | ssh {{ hetzner_storagebox.user }}@{{ hetzner_storagebox.server }} -p {{ hetzner_storagebox.port }} install-ssh-key"
|
|
delegate_to: localhost
|