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

This commit is contained in:
2023-02-06 16:21:05 +01:00
parent 2e2e95f1c1
commit 3ae4a500af

View File

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