Ansible & Configuration
Patch management
Plan OS patching as a cycle of inventory, staged test, batched apply, reboot and verify, using the apt upgrade option deliberately rather than as a blanket upgrade.
What you will be able to do
- Explain what the apt upgrade values safe and dist change on a host.
- Decide when a patch run needs a reboot and how to verify the running kernel.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Ansible & Configuration
- Performance tuningAdvanced · 4 min
Measure task time first, then change forks, pipelining or fact gathering one at a time, and watch control node load and shared services, so a faster run does not hide a…
- Molecule testingAdvanced · 4 min
Test a role on a clean instance with Molecule, using a scenario, a converge step and a verify step that checks the real result, not just that a package exists.
- Vault secrets: operational verificationAdvanced · 4 min
Encrypt secrets with ansible-vault, supply the password at run time, and verify that a run decrypts the value with the right password and fails with the wrong one.
- Role structure: failure analysisAdvanced · 4 min
Use the standard role layout so each setting has one home: user settings in defaults, internal values in vars, and tasks, handlers and templates in their own folders.
- Collections: operational verificationAdvanced · 4 min
Name every module with its fully qualified collection name and pin collection versions in a requirements file, so the same playbook gives the same result on each…
- Tags and limits: failure analysisAdvanced · 4 min
Use --tags, --skip-tags and --limit to narrow a run, and list the tags and hosts first, so a typo selects nothing without anyone noticing. Check the list output before…