Access to different gateways by using a list of passwords.

Hi, I have over 300 gateways which I need to connect by using passwords which is a list of couple different passwords for the first time, then I will deploy the ssh keys. To connect those gateways, I need to loop over a list of vaulted passwords on each gateway. Any idea how to do that?
Thanks in advance.
Berk

Perhaps use a filter to create a combined JSON list of inventory and passwords that ends up with something like this:

{ machine: machineA, password: password1 },

{ machine: machineA, password: password2 },

{ machine: machineA, password: password3 },

{ machine: machineB, password: password1 },

{ machine: machineB, password: password2 },

{ machine: machineB, password: password3 },

{ machine: machineC, password: password1 },

{ machine: machineC, password: password2 },

{ machine: machineC, password: password3 }

You would then loop through this and use item.machine / item.password?

Walter

thanks for the quick response Walter, I will try that, and I think I can also register that correct passwords for each gateway in this case. Thanks!
best.