devops

Ansible when Conditional Explained with Facts and Variables

Learn Ansible when conditionals with variables, facts, registered output, lists, dictionaries, loops, block and role level conditions, and common mistakes.

Deepak Prasad10 min read
devops

Ansible Variable Precedence Explained with group_vars and host_vars

Learn Ansible variable precedence with a practical order for group_vars, host_vars, play vars, vars_files, role defaults, role vars, and extra vars, plus debugging with ansible-inventory and debug tasks.

Deepak Prasad11 min read
devops

Write Your First Ansible Playbook: Package, Service, File, and Copy

Write your first Ansible playbook step by step—project layout, package and service tasks, file and copy modules, become, simple vars, syntax check, check mode, and PLAY RECAP.

Deepak Prasad10 min read
devops

How to Run Ansible Playbooks with ansible-playbook and ansible-navigator

Run Ansible playbooks with ansible-playbook and ansible-navigator—inventory, --limit, --syntax-check, --check, --diff, verbosity, tags, become, extra vars, and stdout mode.

Deepak Prasad13 min read
devops

Ansible Playbook Structure Explained: Plays, Tasks and Modules

Learn Ansible playbook structure—plays, tasks, modules, hosts, become, vars, handlers, multiple plays, execution order, validation, and common layout mistakes.

Deepak Prasad11 min read
devops

Ansible command vs shell vs raw Module: When to Use Each

Compare Ansible command, shell, and raw modules—pipes, argv, creates, removes, changed_when, Python bootstrap, security risks, and when to use dedicated modules instead.

Deepak Prasad17 min read
devops

What is Ansible? Architecture, Components and How It Works

Learn what Ansible is, how agentless automation works, and how control nodes, inventory, modules, playbooks, roles, collections, and vault fit together on Rocky Linux.

Deepak Prasad21 min read
devops

Ansible Operators and Jinja2 Tests in when Conditions

Learn Ansible comparison and logical operators, Jinja2 tests such as is defined, and safe when expressions for strings, lists, dictionaries, facts, and registered task results.

Deepak Prasad12 min read
devops

YAML Syntax for Ansible Playbooks with Examples

Learn YAML syntax for Ansible playbooks—indentation, lists, dictionaries, strings, booleans, multiline values, common mistakes, and ansible-playbook --syntax-check validation.

Deepak Prasad10 min read
devops

Ansible Facts and Custom Facts Explained

Learn Ansible facts from the setup module—OS, network, memory, mounts, and Python—plus fact filters, gather_facts control, custom facts.d files, and ansible_local in playbooks and templates.

Deepak Prasad9 min read
devops

Ansible Ad Hoc Commands Explained with Examples

Learn Ansible ad hoc command syntax with ping, command, shell, package, service, file, copy, user, become, --limit, check mode, troubleshooting, and playbook migration examples.

Deepak Prasad14 min read
devops

Ansible Roles Explained: Directory Structure, Defaults, Vars and Handlers

Learn Ansible roles with a tested demo: directory structure, tasks, handlers, defaults vs vars, variable placement, role dependencies, and when to use roles, include_role, or import_role.

Deepak Prasad13 min read
storage

Network-Bound Disk Encryption with Clevis and Tang on Linux

Configure LUKS NBDE with Clevis and Tang on RHEL/CentOS: two-VM lab with Tang server, LUKS root client, dracut rebuild, and video—boot without typing a passphrase when Tang is reachable.

Deepak Prasad13 min read
linux

How to List Users in Linux (getent, passwd, who, id)

List users in Linux with getent, /etc/passwd, who, and id. Filter normal and system accounts, see logged-in sessions, and check whether a user exists on Ubuntu and RHEL.

Deepak Prasad8 min read
linux

SSH Authentication Methods in sshd_config (Password, Public Key, PAM)

Configure OpenSSH authentication in sshd_config: password, public key, keyboard-interactive, host-based, GSSAPI, AuthenticationMethods, and Match blocks on Linux.

Deepak Prasad12 min read
linux

How to List Groups in Linux and Check User Group Membership

List groups in Linux with getent, groups, id, and /etc/group. Check user group membership, list group members, and compare primary vs supplementary groups.

Deepak Prasad10 min read
security

Import Certificate into Java cacerts on Ubuntu, Debian, RHEL, Rocky Linux

Import a CA or TLS certificate into Java cacerts on Ubuntu, Debian, RHEL, and Rocky Linux with keytool -importcert: locate cacerts, use a copy for safe testing, default password changeit, and distro-specific system trust …

Deepak Prasad6 min read
linux

Ubuntu vs Fedora in 2026: Which Linux Distro Should You Choose?

Compare Ubuntu 26.04 LTS and Fedora Linux 44 in 2026: Debian-derived APT vs RHEL-upstream DNF, five-year LTS vs 13-month releases, snap vs Flatpak, AppArmor vs SELinux, cloud and enterprise fit, and practical desktop …

Deepak Prasad14 min read
linux

How to install EPEL Repository Rocky Linux?

In this tutorial we will share steps and different methods to install EPE repo in Rocky Linux

Omer Cakmak5 min read
system-administration

Chrony Force Sync in Linux

Learn how to force Chrony time sync in Linux using chronyc makestep and chronyd -q. Also configure Chrony as an NTP client or server, check sync status, and understand server options like iburst, minpoll, and maxpoll.

Deepak Prasad8 min read
linux

3 easy steps to configure hugepages in RHEL/CentOS 7/8

Step-by-Step Tutorial to configure hugepages in red hat and centos 7/8 linux using vm nr_hugepages in /etc/sysctl.conf. Also configure hugepages pool using hugeadm

Deepak Prasad6 min read
linux

Check if CPU supports HugePages & change default hugepage size in RHEL

Learn how to check if CPU supports HugePages with 2MB and 1GB Size in CentOS/RHEl 7 Linux and change default hugepage size permanently using GRUB2 with examples

Deepak Prasad4 min read
linux

How to Check Sudo Access for a User in Linux

Learn how to check sudo access in Linux. Check if you or another user has sudo privileges with sudo -l, test sudo access non-interactively in a bash script with sudo -n, and list all sudo users, with real tested output.

Deepak Prasad9 min read
linux

How to Add User to Sudo Group in Linux

Learn how to add a Linux user to the sudo group on Ubuntu and Debian, use the wheel group on RHEL-based systems, verify sudo access, and avoid confusing group-based sudo with custom sudoers file rules.

Omer Cakmak5 min read
linux

How to Check Linux Kernel Version from Command Line

Learn how to check Linux kernel version with tested uname, hostnamectl, procfs, journalctl, dmesg, boot image, dpkg, and apt commands, and understand the difference between the running kernel and installed kernel …

Deepak Prasad7 min read
linux

Install YARN on Linux and Windows

Step by Step instructions to install yarn on Linux and WIndows. Installation on Ubuntu (Debian based) and Rocky Linux (Red hat based) and Windows.

Omer Cakmak7 min read
linux

Fix: cpio premature end of archive, List (lsinitrd) & Extract initramfs in RHEL Linux

How to extract/unpack/uncompress the contents of the initramfs image on RHEL7 and RHEL8? How do I list initramfs image file content? How do I modify the contents of an initrd or initramfs? How do I view an initrd or …

Deepak Prasad5 min read
linux

9 easy steps to create custom ISO RHEL/CentOS 8

To create custom ISO in RHEL/CentOS 8, create a kickstart file and modify the isolinux.cfg for boot menu. You can also minimze the package list and update repodata

Deepak Prasad15 min read
linux

15 steps to setup Samba Active Directory DC CentOS 8

Step by Step tutorial to configure samba active directory domain controller in CentOS 8 Linux. Install Windows AD alternative in Linux. Free domain controller software in Linux

Deepak Prasad14 min read
system-administration

Steps to configure NFS server & client in RHEL/CentOS 7/8

Step by Step NFS configuration Guide to install and configure NFS server in RHEL/CentOS 7/8. NFS server tutorial. How to check NFS status in Linux. setup nfs server

Deepak Prasad16 min read