one thing I don’t understand, why do you need to roll out the private key at all? Using the ssh-agent and agent forwarding you can use your locally stored private key even for those hosts in the second row behind some kind of jump host.
What I’m trying to do is to use serverspec to test the ansible-deployed hosts.
As serverspec connects to test machines via ssh, I have to let it know the location of ssh private key.
I didn’t want to edit the root .ssh/config for such small part, I was looking for a way to specify private key.