Linux & DevOps Quick Reference

Study notes and cheatsheets for Linux, SSH, Git, Ansible, certificates, and common services. Built to be used in order — read Start Here first.

When something breaks, work through this list
  • What is the symptom exactly?
  • Is the service running?
  • What do the logs say?
  • Is the config valid?
  • Is the network working?
  • Is DNS working?
  • Is auth, a cert, or time involved?
Pick a path

The site map lists every page by group (kept in step with the sidebar). Below: quick entry points for tracks that are easy to miss if you only scroll the numbered path.

Observability

Backup & DR

Containers

IaC

Core Skills

Services

Workflow & Reference

Ansible Deep Dives

Quickstart (For Dummies)

Zero-to-playbook in ten minutes. Plain language, no jargon. Install Ansible, write an inventory, run your first playbook.

Learn Ansible (Tutorial)

Hands-on, progressively harder labs from a one-file playbook to a multi-role stack with tags, environments, and CI.

Best Practices & Refactoring

Naming, layout, idempotency, error handling, performance, security, refactoring recipes, anti-patterns, review checklist.

Roles in Practice

Role directory layout, defaults vs vars, tasks, handlers, templates, and calling a role from a playbook.

Project Structure

Production repo layout: inventories, group_vars, host_vars, ansible.cfg, and how to navigate a real repo.

Variable Precedence

The full priority chain from role defaults to extra vars, and how to debug variable values.

Debugging

Verbose mode, --check --diff, the debug module, common errors, and ansible-lint.

Testing

ansible-lint, yamllint, --syntax-check, --check --diff, Molecule scenarios, ansible-test, GitLab CI skeletons.

Error Handling

block/rescue/always, failed_when with complex rc sets, any_errors_fatal, sanity checks before destructive tasks.

Performance

Fact caching, pipelining, ControlMaster, strategies, async/poll, forks, when to use delegation.

Inventory Patterns

Static INI vs YAML, group_vars as directories, dynamic inventory plugins, lab vs prod layout.

Custom Modules

When to write one, minimal Python module skeleton, return contract, check_mode, collections, action/filter plugins.

Deploy Flow

End-to-end trace from variable → template → deployed file → handler → service restart.

Handlers & Templates

Multiple handlers, listen, flush_handlers, OS-aware templates, and whitespace control.

Tags

How tags work, --tags/--skip-tags, tag inheritance through imports, and CI-friendly tagging patterns.

Cheatsheet

Dense single-page reference: CLI flags, ad-hoc modules, task/handler boilerplate, loops, precedence, Jinja filters, vault.

GitLab & CI

Platform

Identity & Auth

Config Literacy

Deep, line-by-line config walkthroughs for Nginx and Postfix as exemplars. Other services use intro pages plus service deep dives in the sidebar; the same “read the config like a pro” pattern shows up there where it matters.

File Sharing

This section is SMB / Samba–first (Windows-friendly shares from Linux). NFS and other protocols are not covered as first-class pages here.

Linux Tools

Identity & Auth Deep Dives

Guides

Reference