🗝️ Ansible ssh key setup
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
f6ad672a7a
commit
8f2f400eac
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user