New key
parent
f84519e88f
commit
ba68a9b8d9
|
@ -8,9 +8,9 @@ pipeline:
|
||||||
image: williamyeh/ansible:debian8
|
image: williamyeh/ansible:debian8
|
||||||
secrets: [ ssh_key ]
|
secrets: [ ssh_key ]
|
||||||
commands:
|
commands:
|
||||||
- env
|
|
||||||
- mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
|
- mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
|
||||||
- ssh-keyscan -H lund.fsfeurope.org >> ~/.ssh/known_hosts
|
- ssh-keyscan -H lund.fsfeurope.org >> ~/.ssh/known_hosts
|
||||||
|
- ssh -v lund.fsfeurope.org ls
|
||||||
- ansible-playbook playbook.yml -i hosts
|
- ansible-playbook playbook.yml -i hosts
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
Loading…
Reference in New Issue