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
On Nov 30, 2022, at 6:15 AM, 'Niyazi Gökberg Gündüz' via Ansible Project
<[email protected]<mailto:[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]<mailto:[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/E424F430-5E5E-4979-8EA0-5952B6CD8453%40nist.gov.