🗝️ Ansible ssh key setup
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Sivert V. Sæther 2023-02-06 17:32:16 +01:00
parent f6ad672a7a
commit 8f2f400eac

View File

@ -15,6 +15,7 @@ steps:
KEY: KEY:
from_secret: key from_secret: key
commands: commands:
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini - sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
- unbuffer ansible-playbook -vvv site.yml -t update | cat - unbuffer ansible-playbook -vvv site.yml -t update | cat