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 manage users across multiple servers, through either password or password-less (SSH key) access.

There are a few other ...

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.