need to get info for /etc/passwd /etc/group

7 views
Skip to first unread message

Tony Wong

unread,
Mar 18, 2022, 11:27:29 AM3/18/22
to Ansible Project
any idea how I would get this info from 20 esx servers? 

do I do a ad-hoc command or is there a module or playbook?

Doug Hunley

unread,
Mar 18, 2022, 12:08:16 PM3/18/22
to ansible...@googlegroups.com
To get info from the passwd/group files, use the getent module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/getent_module.html

On Mar 18, 2022 at 11:27:29, Tony Wong <tdub...@gmail.com> wrote:
any idea how I would get this info from 20 esx servers? 

do I do a ad-hoc command or is there a module or playbook?

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d9f1db3c-43f3-489f-9d04-5020f5a2a3e0n%40googlegroups.com.


--

{

"name": "Douglas J Hunley",

"title": "Solutions Engineer",

"employer": "Crunchy Data"

}

Reply all
Reply to author
Forward
0 new messages