Add (known) ssh host key

This commit is contained in:
Sonny 2020-03-22 19:17:54 +01:00
parent 99ba773b91
commit f6100416c3

View file

@ -95,6 +95,8 @@ deploy:
before_script:
- apt-get update && apt-get install -y ansible git
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.fudiggity.nl/sonny/ansible-playbooks.git deployment
- mkdir /root/.ssh
- echo "192.168.178.63 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbtcdgJBhVCKsO88cV19EYefDTopdYejEQCp1pYr1Ga" > /root/.ssh/known_hosts
- echo "$DEPLOY_HOST" > deployment/hosts.yml
- echo "$DEPLOY_KEY" > deployment/deploy_key
script: