Now, we will discuss how to manage users in different systems.
Managing users in Ansible
Linux systems
Ansible provides powerful user management modules to manage different tasks on a system. We have a chapter dedicated to discussing Ansible (Chapter 13, Ansible for System Administration), but in this chapter, we will explore its power for managing user accounts across a company's infrastructure.
Sometimes, companies allow root access to all users, to get rid of the headache of user management; this is not a good solution in terms of security and auditing. It's the best practice to give the right permissions to the right users, and to revoke them once users leave the company.
Ansible provides an unmatched way to...