- Add PostgreSQL role for installing and configuring PostgreSQL 17 - Add postgres_exporter role for PostgreSQL metrics collection - Add deploy-postgres-app2.yml playbook for deployment - Configure test database 'testdb' with user 'testuser' - Set up postgres_exporter user for monitoring - Include firewall configuration for PostgreSQL (5432) and postgres_exporter (9187) - Follow existing role structure pattern from node_exporter
13 lines
234 B
YAML
13 lines
234 B
YAML
---
|
|
- name: Deploy PostgreSQL and Postgres Exporter on App2
|
|
hosts: 192.168.0.111
|
|
become: yes
|
|
gather_facts: yes
|
|
|
|
roles:
|
|
- role: postgresql
|
|
tags: postgresql
|
|
|
|
- role: postgres_exporter
|
|
tags: postgres_exporter
|