- A playbook is plays with machines and tasks;
PLAY RECAPcounts a machine's tasks:ok— passed,changed— changed something. - A
shelltask always answerschanged; thefile,copy,servicemodules describe the state and change only the difference — a run with no difference giveschanged=0. - A handler from
handlersfires onnotifyonly when the task changed something — once, at the end of the play. templatebuilds a file from a template with variables, and--check --diffshows what a run would change without changing anything.- nginx at the start of the lesson restarted on every run because the restart was a
shelltask; with a handler it restarts only after a config edit.
Step 6 of 6 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson