Managing PostgreSQL With Ansible
summary
Shows Ansible actually installing and configuring PostgreSQL end to end: installs PostgreSQL 13 via apt, creates role, database, table, index and runs a query, and uses handlers to reload postgres and template pg_hba.conf. Demonstrates idempotent playbooks (re-runs report no changes), ad‑hoc ansible mode, postgres modules for ping/backup/restore, and default parallelism of 10; examples are from an environment with about 1000 PostgreSQL databases and the demos run and report success.
AI-written summary · about
chapters (20)
- 0:00Start
- 0:33Agenda
- 1:11Andreas Scherbaum
- 2:43What Postgres Is
- 3:36What Is Ensemble
- 7:47Postgres Modules
- 12:16Does the Uptime Command Change Anything
- 13:38Ignore Errors
- 14:24Running Commands
- 15:56Playbooks
- 22:02Gathering Facts
- 23:22Summary
- 26:46Install a Postgres Database
- 27:13How Do I Install Packages
- 31:34Postgres Ping Module
- 34:16User Module To Drop Users
- 43:26Create a Table and an Index
- 45:01Create an Index
- 46:14Postgresql Query
- 49:51Ansible Tower








