diff --git a/tasks/storagebox.yml b/tasks/storagebox.yml index f92f807..93253a5 100644 --- a/tasks/storagebox.yml +++ b/tasks/storagebox.yml @@ -5,11 +5,6 @@ register: ssh_key - name: "Storagebox | Copy key to Hetzner" - ansible.builtin.command: + ansible.builtin.shell: cmd: "echo {{ ssh_key.stdout_lines }} | ssh {{ hetzner_storagebox.user }}@{{ hetzner_storagebox.server }} -p {{ hetzner_storagebox.port }} install-ssh-key" delegate_to: localhost - -- name: "Storagebox | Create backup directories" - ansible.builtin.command: - cmd: "ssh {{ hetzner_storagebox.user }}@{{ hetzner_storagebox.server}} -p {{ hetzner_storagebox.port }} mkdir -p {{ borg_repo_path }}" - delegate_to: localhost