Commit 7718cabc authored by Chris Lamb's avatar Chris Lamb 💬

Revert to trying ssh-agent...

parent cce3f553
Pipeline #48032 passed with stages
in 5 minutes and 27 seconds
......@@ -14,13 +14,9 @@ then
chmod +x */
chmod 600 "${SSH_PRIVATE_KEY}"
ls -lh /builds/reproducible-builds/
ls -lh /builds/reproducible-builds/
ls -lh /builds/reproducible-builds
ls -lh /builds/
ls -lh /
ssh -vvv -o StrictHostKeyChecking=no -i "${SSH_PRIVATE_KEY}" -p 443 whoami
echo "${CI_ENVIRONMENT_NAME} ansible_ssh_private_key_file=${SSH_PRIVATE_KEY} ${ANSIBLE_HOST_CONFIG:-}" > ansible/hosts
eval $(ssh-agent -s)
tr -d '\r' < "${SSH_PRIVATE_KEY}" | ssh-add -
ssh -vvv -o StrictHostKeyChecking=no -p 443 whoami
echo "${CI_ENVIRONMENT_NAME} ${ANSIBLE_HOST_CONFIG:-}" > ansible/hosts
ANSIBLE_CONFIG=ansible/ansible.cfg ansible-playbook ansible/deploy.yml "${@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment