Skip to content

← Week 23 - Ansible I

Week 23 - Ansible I: notes

Status: Not started

Exercise 1

Install Ansible; inventory, ad-hoc commands, playbooks, modules, variables, handlers.

Commands, results, what surprised me.

Exercise 2

Idempotency: run the same playbook twice and read the changed counts.

Commands, results, what surprised me.

Exercise 3

Jinja2 templates for nginx and the systemd unit.

Commands, results, what surprised me.

Exercise 4

First playbook: users, SSH hardening, ufw and unattended-upgrades.

Commands, results, what surprised me.

Deliverable

A base-hardening playbook that turns a fresh VM into your standard server.

Write-up.