I have multiple hosts and all of that hosts are behind their own bastion host, So every server has its own bastion host. Because of the single-tenant structure. Now I want to run a command or playbook on all of these servers which are behind bastions.
Asked
Active
Viewed 16 times
0
-
I use to do ssh like this- ` ssh user@IP -J user@bastion` – Gagangiri Jan 27 '22 at 12:10
-
You can use jump hosts in the config of your hosts in the inventory. – β.εηοιτ.βε Jan 27 '22 at 12:13
-
@β.εηοιτ.βε Can you please help in that. Because every server is behind its own bastion host. and I want to run command on all hosts via ansible. – Gagangiri Jan 27 '22 at 12:14