🔑 Simple key handling
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sivert V. Sæther 2023-02-06 16:21:05 +01:00
parent 2e2e95f1c1
commit 3ae4a500af

View File

@ -9,11 +9,8 @@ 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
@ -21,7 +18,7 @@ steps:
inventory: servers.ini inventory: servers.ini
playbook: site.yml playbook: site.yml
tags: update tags: update
verbose: 4
ssh_common_args: -o "StrictHostKeyChecking no" ssh_common_args: -o "StrictHostKeyChecking no"
private_key: id_rsa private_key:
from_secret: key