mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-29 04:23:34 +01:00
User
Description
This role executes tasks that are relevant for all users by configuring essential shell files. It deploys customized templates for .bashrc
and .bash_profile
for any specified user. This ensures a consistent and enhanced shell environment across the system.
Overview
Optimized for modular configuration, this role uses Jinja2 templates to create:
- A customized
.bashrc
that sets up a dynamic welcome message, system information, and useful aliases. - A standardized
.bash_profile
that sources the.bashrc
to ensure consistent behavior upon login.
The role adapts its file paths based on the target user (e.g. the root user or a standard user), ensuring proper ownership and permissions.
Purpose
The primary purpose of this role is to establish a consistent and informative shell environment for all users. By standardizing shell configuration, it helps improve usability and system management through clear and structured output upon login.
Features
- Shell Configuration: Deploys customized
.bashrc
and.bash_profile
files. - Dynamic Content: Displays system information, load averages, memory usage, disk usage, CPU details, and top processes upon login.
- User-Specific Customization: Adapts file locations and ownership based on the target user.
- Enhanced Usability: Sets color-coded prompts and aliases for a better command-line experience.