I’ve read a couple posts like this one
But still no luck, but I wanted to know if I’m going about this the right or wrong way.
The problem:
I’ve created a Vagrant and I’m using Ansible to provision it, this is working great! The problem comes into play when I need to checkout my project which is in a Private Repository (Atlassian Stash aka Bitbucket aka git). I’d like to use my SSH key that I have configured on Atlassian Stash to pull down the project onto the Vagrant I have running but in order to do this I would need to copy my existing private SSH key onto my Vagrant. Which I do not want to do. I thought about generating a new key on the Vagrant box itself and then pushing the new public ket to Atlassian Stash via the API but this still needs me to authenticate with Atlassian Stash.
Also I’d like to use the same Ansible playbook to provision my Production Server in the future so I’m trying to keep the process the same.
I’ve looked a little into Ansible Vault but have not played with it…
Am I going about this the right way? what have others done?
Thanks,
–Pafford