🔑 Handle keys differently
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sivert V. Sæther 2023-02-06 16:11:52 +01:00
parent 35abca050e
commit 2e2e95f1c1

View File

@ -9,8 +9,11 @@ steps:
environment: environment:
PASS: PASS:
from_secret: pass from_secret: pass
KEY:
from_secret: key
commands: commands:
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini - sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
- echo "$KEY" > id_rsa
- name: run updates - name: run updates
image: plugins/ansible image: plugins/ansible
@ -20,6 +23,5 @@ steps:
tags: update tags: update
verbose: 4 verbose: 4
ssh_common_args: -o "StrictHostKeyChecking no" ssh_common_args: -o "StrictHostKeyChecking no"
private_key: private_key: id_rsa
from_secret: key