[defaults]
hostfile = hosts
remote_user = ubuntu
private_key_file = /home/test/.ssh/id_rsaoptions[:user] ||= Etc.getlogin
options[:keys] = "{{ private_key_file }}"
# options[:keys] = "/home/test/.ssh/id_rsa"- name: template copy
template: src=spec.j2 dest=/serverspec/.spec
Am 09.05.2015 07:36 schrieb "t goto" <tomoy...@gmail.com>:
>
> Sounds like a plan! :)
> I willl try this method, thanks!
>
Hi,
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.
Regards,
Marcus