Config Management with Ansible
Configure, patch, and run database servers with Ansible: what it is and its benefits for DBAs, inventories, playbooks and modules, the core lint, dry-run, and run workflow, roles, collections, and Vault, and real DBA automation such as patching.
Work through them in order.
Each lesson builds on the one before it.
-
What Is Ansible
Picking up from Terraform: what Ansible is, how it works without agents, its core benefits for DBAs, and how it compares with Terraform.
-
Inventory and Ad-Hoc Commands
Organizing servers into groups, group and host variables, dynamic cloud inventories, quick ad-hoc commands, and ansible.cfg.
-
Playbooks and Modules
Plays, tasks, and modules, a playbook that prepares Oracle servers, ok and changed results, and variables, templates, and logic.
-
The Core Ansible Workflow
Lint, dry-run with check and diff, try one host, run in batches, and read the recap, plus the options DBAs use most.
-
Roles, Collections, and Vault
Reusable roles, collections of modules for databases and clouds, keeping secrets with Ansible Vault, and a typical project layout.
-
Ansible for Databases
What DBAs automate with Ansible, idempotent PostgreSQL tasks, patching Oracle safely in waves, running Ansible for the team, and best practices.