I’m not sure if anyone has figured this out yet, I think you’d need to authenticate that request.
Any chance you could add the same SSH key you have on BitBucket to an account on GitHub? You could also reference a local file, or add your public key to the your repo and reference it like that:
- "{{ lookup('file', 'keys/example.pub') }}" # This references trellis/keys/example.pub
Thank you @ben for your reply,
the noob here didn’t understand what you meant with “You could also reference a local file, or add your public key to the your repo and reference it like that:”
- “{{ lookup(‘file’, ‘keys/example.pub’) }}” # This references trellis/keys/example.pub
but I started from scratch with a public github repo and was able to deploy http://178.128.197.220/.
However, it seems like bootstrap isn’t active but I guess I’ ll make another post in sage for that and not trellis.
On a side note, I would love to know how to proceed to deploy with a bitbucket private repo, if anyone knows how to do it?
Giving me this error when running ansible-playbook server.yml -e env=production
Failed to connect to bitbucket.keys at port 443: [Errno -2] Name or service
not known
failed: [46.101.206.192] (item=[{u’name’: u’admin’, u’groups’: [u’sudo’]}, u’https://@bitbucket.keys’]) => {“changed”: false, “item”: [{“groups”: [“sudo”], “name”: “admin”}, “https://@bitbucket.keys”]}
My question is : how am I suppose to write in users.yml my url to bitbucket account keys ?
I deployed successfully with a repo on github and a url pointing to my github account url key but I’m unsuccessful with bitbucket.
@Tanuki Ignore the GitHub vs BitBucket part of things for keys. Think of https://github.com/username.keys as just a repository of your public SSH keys.
Use https://github.com/username.keys, where username is a GH account that has your public SSH key. This would be the same public key on your BitBucket account.
Then use your BitBucket repo for your repo URL as mentioned above
Allright ! Thank you @ben it’s working !
Not sure to understand the reason behind having to use github and not being able to do it only with a bitbucket account but at least it’s working and I can continue on my learning journey.
Thank you again for your help