looping over users?

38 views
Skip to first unread message

Mike Eggleston

unread,
Aug 17, 2021, 11:11:51 AM8/17/21
to ansible...@googlegroups.com
Does someone have a playbook already that loops over users? I have to generate a report (I’ll give them a CSV file) of users, a description if I can and if the account has access to root (though sudo?)

TIA

Mike

Brian Coca

unread,
Aug 17, 2021, 11:57:16 AM8/17/21
to Ansible Project
the getent module is probably what you need.
https://docs.ansible.com/ansible/2.9/modules/getent_module.html#getent-module

--
----------
Brian Coca

Reply all
Reply to author
Forward
0 new messages