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

**URL:** <https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457>\
**Category:** Ansible Project\
**Created:** [March 18, 2022, 3:27pm UTC](https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457 "2022-03-18T15:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [March 18, 2022, 3:27pm UTC](https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457/1 "2022-03-18T15:27:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Doug\_Hunley](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Doug\_Hunley](https://forum.ansible.com/u/Doug_Hunley)\
**Post date:** [March 18, 2022, 4:08pm UTC](https://forum.ansible.com/t/need-to-get-info-for-etc-passwd-etc-group/36457/2 "2022-03-18T16:08:04Z")

</div>

To get info from the passwd/group files, use the getent module: [https://docs.ansible.com/ansible/latest/collections/ansible/builtin/getent\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/getent_module.html)
