thanks for the quick response Walter, but the problem is, I do not know which password for which gateway, so I need to loop over the password list of 5 passwords on each gateway best.
On Wednesday, November 30, 2022 at 12:22:32 PM UTC+1 [email protected] wrote: > 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 > -- > Walter Rowe, Division Chief > Infrastructure Services, OISM > Mobile: 202.355.4123 <(202)%20355-4123> > > On Nov 30, 2022, at 6:15 AM, 'Niyazi Gökberg Gündüz' via Ansible Project < > [email protected]> wrote: > > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0012422d-5cdd-4022-8118-3697fde865can%40googlegroups.com > > <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2F0012422d-5cdd-4022-8118-3697fde865can%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7C15bbb71304564c06977c08dad2c433ea%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638054037363258967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=czQoGPqBHw5VdAARSPI760bmcGkeCyw3MbRTWrsXbeE%3D&reserved=0> > . > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0abee9b4-aa1c-4e14-a4aa-597d56327c29n%40googlegroups.com.
