From c64a9212f265aa29daf460379215983c615d99cc Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Thu, 30 Mar 2023 15:47:41 +0200 Subject: [PATCH] Add private key Signed-off-by: Noah Knegt --- .drone.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7f232d1..b97e996 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,14 +15,14 @@ steps: - ansible-lint . - name: ansible apply - image: plugins/ansible:3 - settings: - inventory: inventory/hosts.yml - playbook: site.yml - private_key: - from_secret: ansible_private_key - when: - branch: - - master - event: - - push + image: cytopia/ansible:alpine + volumes: + - name: ssh-keys + path: /root/.ssh/ + commands: + - ansible-playbook -i inventory/hosts site.yml --private-key /root/.ssh/id_ed25519 + +volumes: + - name: ssh-keys + host: + path: /home/ansible/.ssh/