Hadn't found a way to create inventory in ansible with a connection over 2 jump hosts. Normally I do create two jumps:
- ssh -L 1261:localhost:1261 [email protected] -p 22
- then ssh -L 1262:target_host.addr [email protected] -p 1261
- then I connect to target host ssh user3@localhost -p 1262
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: