Add PG repo
This commit is contained in:
parent
190a88e57c
commit
f319ee6ad2
@ -4,6 +4,17 @@
|
||||
---
|
||||
- hosts: vm-general-1.ashburn.mgmt.desu.ltd
|
||||
tasks:
|
||||
- name: assure postgresql repo key
|
||||
ansible.builtin.apt_key:
|
||||
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
|
||||
state: present
|
||||
tags: [ db, psql, repo ]
|
||||
- name: assure postgresql repo
|
||||
ansible.builtin.apt_repository:
|
||||
# Ex. "focal-pgdg main"
|
||||
repo: 'deb http://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main'
|
||||
state: present
|
||||
tags: [ db, psql, repo ]
|
||||
- name: assure prometheus psql exporter
|
||||
ansible.builtin.docker_container:
|
||||
name: prometheus-psql-exporter
|
||||
@ -19,6 +30,10 @@
|
||||
roles:
|
||||
- role: geerlingguy.postgresql
|
||||
vars:
|
||||
postgresql_packages:
|
||||
- postgresql
|
||||
- postgresql-contrib
|
||||
- libpq-dev
|
||||
postgresql_global_config_options:
|
||||
- option: listen_addresses
|
||||
value: 10.0.0.2,127.0.0.1
|
||||
|
Loading…
Reference in New Issue
Block a user