CloudSprocketLabs
Menu

Practical Ansible

A seven-part series taught on this lab

Written by Ali Shaikh and published on alishaikh.me. Each part does real administration work on the lab hosts, so you finish with skills, not just notes.

  1. Part 1

    Set Up an Ansible Practice Lab in Under 10 Minutes

    Build the lab on Windows, macOS, Linux or in your browser, and run your first successful Ansible command.

    Read on alishaikh.me →

  2. Part 2

    Understand Ansible Inventory, Facts and Ad-Hoc Commands

    How Ansible decides which hosts to manage, and how to answer real operational questions without logging into a single machine.

    Read on alishaikh.me →

  3. Part 3

    Write Your First Real Ansible Playbook: Baseline a Linux Server

    Turn ad-hoc commands into a repeatable playbook, with check mode, diff mode and idempotence explained in plain language.

    Read on alishaikh.me →

  4. Part 4

    Manage Users, SSH Keys and Sudo with Ansible

    Onboard and offboard users across a group of servers with variables, loops and tags instead of hand edits.

    Read on alishaikh.me →

  5. Part 5

    Deploy nginx with Ansible: Handlers, Reloads and Health Checks

    Install nginx, deploy content and meet handlers: restarts that happen only when something actually changed.

    Read on alishaikh.me →

  6. Part 6

    Ansible Templates and Safe Configuration Rollouts

    Render per-host configuration from Jinja2 templates, validate before reload, and roll changes out one host at a time.

    Read on alishaikh.me →

  7. Part 7

    Ansible Vault, Roles and the Road to Production

    Encrypt secrets, refactor playbooks into roles, and understand what changes when the lab becomes real infrastructure.

    Read on alishaikh.me →

New parts are announced on alishaikh.me, where you can subscribe for updates.