From 5fd111913e9a35a724ad428fb9861399339e3606 Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Fri, 31 Mar 2023 10:41:53 +0200 Subject: [PATCH] Add ssh key to the ssh agent Signed-off-by: Noah Knegt --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e756b1e..a2c09cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,8 @@ steps: - name: ansible apply image: cytopia/ansible:latest-infra commands: - - ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519 + - ssh-add /root/.ssh/id_ed25519 + - ansible-playbook -i inventory/hosts.yml site.yml volumes: - name: ssh_key path: /root/.ssh