Linux

Red Hat Certified Engineer (RHCE) #9 Tags and conditionals: when, loop, until
9 min read

Red Hat Certified Engineer (RHCE) #9 Tags and conditionals: when, loop, until

The ninth post in the Red Hat Certified Engineer (RHCE) series. We organize the core tools that control the flow of a playbook — conditional execution with when, iteration with loop, retries with until, and partial runs with tags. We learn the exam-staple patterns hands-on: branching by OS, bulk-creating a user list, retrying while waiting for a service to come up, and using tags to run only the tasks you need.

Red Hat Certified System Administrator (RHCSA) #6: Local Storage 2 — LVM Expansion and LUKS Encryption
11 min read

Red Hat Certified System Administrator (RHCSA) #6: Local Storage 2 — LVM Expansion and LUKS Encryption

The sixth post in the Red Hat Certified System Administrator (RHCSA) series. We add a PV to a volume group and grow it with vgextend, enlarge the logical volume with lvextend, then extend the file system itself with xfs_growfs and resize2fs — and we build a LUKS-encrypted volume with cryptsetup, setting it up to unlock automatically at boot through crypttab and fstab. We also cover exam staples like XFS being impossible to shrink.

Red Hat Certified Engineer (RHCE) #8 Error handling: block/rescue/always, failed_when, ignore_errors
9 min read

Red Hat Certified Engineer (RHCE) #8 Error handling: block/rescue/always, failed_when, ignore_errors

The eighth post of the Red Hat Certified Engineer (RHCE) series. We cover the error handling that controls the flow when a playbook fails mid-run. From the exam point of view, we work through structuring exceptions with block/rescue/always, letting failures slide with ignore_errors, defining your own failure conditions with failed_when, and shoring up the idempotency of the command module with changed_when.

Red Hat Certified System Administrator (RHCSA) #5: Local Storage 1 — Partitions, swap, LVM basics
11 min read

Red Hat Certified System Administrator (RHCSA) #5: Local Storage 1 — Partitions, swap, LVM basics

The fifth post in the Red Hat Certified System Administrator (RHCSA) series. We check disks with lsblk and fdisk, create partitions with fdisk,parted, add swap with mkswap,swapon, build LVM with pvcreate,vgcreate,lvcreate, then mount it permanently with mkfs and fstab (UUID) — all typed out by hand. We carry RHCSA's most common task, "create an LVM and mount it," all the way through so it survives a reboot.

Red Hat Certified Engineer (RHCE) #7: Jinja2 Templates — Filters, Control Flow, and lookup
4 min read

Red Hat Certified Engineer (RHCE) #7: Jinja2 Templates — Filters, Control Flow, and lookup

The seventh post in the Red Hat Certified Engineer (RHCE) series. We render .j2 files into per-host configuration with the template module, cover Jinja2 syntax for variable output, for, and if, plus filters like default, upper, join, and to_nice_yaml, read files and environment variables with lookup, and even handle whitespace control — all in the form the exam asks for.

Red Hat Certified System Administrator (RHCSA) #4: Boot and the system — systemd, target, GRUB2, password recovery
10 min read

Red Hat Certified System Administrator (RHCSA) #4: Boot and the system — systemd, target, GRUB2, password recovery

The fourth post in the Red Hat Certified System Administrator (RHCSA) series. We work through the structure of systemd and how to control services with systemctl, switching the boot target, editing kernel parameters in GRUB2, and the single most frequent RHCSA task — root password recovery with rd.break — by typing the commands ourselves.

Red Hat Certified Engineer (RHCE) #6: Variables and facts — precedence, magic vars, custom facts
10 min read

Red Hat Certified Engineer (RHCE) #6: Variables and facts — precedence, magic vars, custom facts

The sixth post in the Red Hat Certified Engineer (RHCE) series. From a hands-on angle, we cover where variables are defined (play vars, vars_files, group_vars/host_vars, extra-vars, register) and their reference syntax, the precedence rules where extra-vars always wins, the facts gathered by gather_facts and how to reach them through ansible_facts, how register stores a task result, magic variables like hostvars and groups, and finally custom facts you build under /etc/ansible/facts.d.

Red Hat Certified System Administrator (RHCSA) #3 Shell scripting: conditionals, loops, arguments, exit codes
10 min read

Red Hat Certified System Administrator (RHCSA) #3 Shell scripting: conditionals, loops, arguments, exit codes

The third post in the Red Hat Certified System Administrator (RHCSA) series. To write the simple bash scripts that show up regularly on the RHCSA exam, we type our way through shebang and variable quoting, positional arguments and exit codes, test/if/case conditionals and for/while/until loops, command substitution and arithmetic, read input and functions. At the end we write a real-world script that validates arguments and processes multiple targets in a loop.

Red Hat Certified Engineer (RHCE) #5: Playbook Basics — task, handler, idempotency
11 min read

Red Hat Certified Engineer (RHCE) #5: Playbook Basics — task, handler, idempotency

The fifth post in the Red Hat Certified Engineer (RHCE) series. We work through the YAML structure of a playbook and the play/task relationship, writing module tasks and the recommendation to name them, the handler-and-notify pattern that runs once at the end only when something changed, the idempotency that surfaces through changed and ok, the idempotency stopgaps for command/shell (creates/removes), and ansible-playbook versus ansible-navigator run plus --check/--diff/--syntax-check — all from a hands-on exam point of view.

Red Hat Certified System Administrator (RHCSA) #2 Essential Tools: bash, vi, redirection, find/grep, archive, ssh
14 min read

Red Hat Certified System Administrator (RHCSA) #2 Essential Tools: bash, vi, redirection, find/grep, archive, ssh

The second post in the Red Hat Certified System Administrator (RHCSA) series. We cover the shell fundamentals that everything else is built on — input/output redirection and pipes, finding and processing matching files with find and grep, text processing with less,sort,sed,awk, the modes and search-and-replace of the vi editor, tar,gzip archiving, remote work with ssh and scp, and how to wield man pages as a weapon in an exam room with no internet — all with command examples.

Red Hat Certified Engineer (RHCE) #4 Ad-hoc commands: running modules on the spot
8 min read

Red Hat Certified Engineer (RHCE) #4 Ad-hoc commands: running modules on the spot

The fourth post in the Red Hat Certified Engineer (RHCE) series. We lay out the ad-hoc structure for running modules on the spot with the ansible command, the frequently used modules such as ping, command, shell, copy, file, dnf, service, user, and lineinfile, host patterns, become, and how to look up options with ansible-doc — all worked through with examples.

Red Hat Certified System Administrator (RHCSA) #1: The Exam — EX200 format, environment, study strategy
6 min read

Red Hat Certified System Administrator (RHCSA) #1: The Exam — EX200 format, environment, study strategy

The opening post of the Red Hat Certified System Administrator (RHCSA) series. We lay out the format and domains of the EX200 hands-on exam, the 210/300 passing line, the testing environment where you work with man pages only and no internet, and the study strategy that turns the feel you built on the [RHEL operations track](/en/posts/rhel-basics-1) into hands-on exam results. This 16-part series targets an RHCSA pass, wrapping up with a full-scale mock exam in #16.