Email the Author
You can use this page to email Luca Berton about Ansible Linux Users & Groups By Examples.
About the Book
Learn the Ansible automation technology with some real-life examples.
Every successful IT department needs automation nowadays for bare metal servers, virtual machines, could, containers, and edge computing. Automate your IT journey with Ansible automation technology.
I'm going to teach you example by example how to manage users and groups in Linux and macOS operation systems are the most common System Administrator tasks.
Each of the 20+ lessons summarizes a specific scenario about user and groups management: creating a user, creating a new pair of a suitable SSH key and a home directory, changing a password and specifying the encryption cipher, removing the home directory and the mailbox, or assigning a special `nologin` shell for temporarily disabled users. Another user scenario that happens very often is when you need only to temporarily disable and enable a user. Another useful administrator tool is group management to assign permission to resources to a bunch of users.
You could easily customize the example code with your username and use it in your everyday journey without any additional effort.
There are some Ansible codes usable in all the Linux systems, battle-tested for RedHat-like and Debian-like systems.
Are you ready to automate your day with Ansible?
Examples in the book are tested with the latest version of Ansible 2.9+ and Ansible Core 2.11+.
About the Author
Luca Berton is an Ansible Automation Expert who has been working with JPMorgan Chase & Co. and previously worked with the Red Hat Hat Ansible Engineer Team for three years. Published author of the Ansible for VMware by Examples and Ansible for Kubernetes by Examples best-seller of the Ansible By Example(s) practical book series and creator of the Ansible Pilot project. With more than 15 years of experience as a System Administrator, he has strong expertise in Infrastructure Hardening and Automation. Enthusiast of the Open Source supports the community, sharing his knowledge in different events of public access. Geek by nature, Linux by choice, Fedora, of course.