Specific ansible jump host configuration

470 Views Asked by At

Hadn't found a way to create inventory in ansible with a connection over 2 jump hosts. Normally I do create two jumps:

No googled results and no ansible manual gived a receipt or even the explaining how to repeat this, assuming we had to keep three different users and three different passwords in inventory (even if it was vault).

All I found is:

  1. use ssh config (but I couldn't use common ssh config and couldn't point ansible to use custom file instead of it) like here or here
  2. use ansible.cfg (but I have a plenty of playbooks for different projects and it's not a good idea)
  3. use ProxyCommand (but there's no examples or manual about 2 jumps)
0

There are 0 best solutions below