Jump host and ansible_ssh_private_key_file

Hey there,

I’ve been following the documentation on how to configure a jump host to access servers which can be found here.

My jump server has the private keys needed to access different servers so when I try to set my hosts file to:

[gatewayed]

foo ansible_user=boo ansible_host=192.0.2.1 ansible_ssh_private_key_file=/path/to/private.key

I get “key_load_public: No such file or directory” as it’s trying to locate the file on the ansible host and not on the jump server itself.

Can you suggest a way to use private keys located on the jump server using ansible_ssh_common_args as per documentation?

Thanks,