I agree. This has to be done in the inventory. No way to do this on the command line. Inventories can be powerful and help you not have to specify so many things on the command line. You can have group vars and host vars in an inventory.
Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 > On Sep 28, 2022, at 3:17 AM, Luca 'remix_tj' Lorenzetto > <[email protected]> wrote: > > Hello, > > On Wed, Sep 28, 2022 at 9:14 AM Cola CoCo <[email protected]> wrote: >> >> Hello, >> -user can just specify one user, but what I need is to specify multi users >> in one command line, like "user1@ip1, user2@ip2" >> > > No way to do it without using an inventory. > > Luca > > > -- > "E' assurdo impiegare gli uomini di intelligenza eccellente per fare > calcoli che potrebbero essere affidati a chiunque se si usassero delle > macchine" > Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) > > "Internet è la più grande biblioteca del mondo. > Ma il problema è che i libri sono tutti sparsi sul pavimento" > John Allen Paulos, Matematico (1945-vivente) > > Luca 'remix_tj' Lorenzetto, > https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.remixtj.net%2F&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cc0b6e35a414841bf861608daa12181c9%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637999462556957119%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qI3%2FeQRdWLB5nQYwOX4ja3PvlAC2pyuANCC7uhnEwlg%3D&reserved=0 > , <[email protected]> > > -- > 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://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2FCAKuX69oOf1jU4oy5_dTciw2_%252BFbEuKx5SDkZayh9tCF1vhifUw%2540mail.gmail.com&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cc0b6e35a414841bf861608daa12181c9%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637999462556957119%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2tL2eZjpTa86zBmsXabC7UimmSiPRTwjI8IIVqYvh1A%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/C5FBEF17-D062-4D5B-AD08-4E47E8741FED%40nist.gov.
