ansible-roles/postgresql/tasks/packages_stretch.yml
Ludovic Poujol b3ac39decd
All checks were successful
continuous-integration/drone/push Build is passing
postgresql: Fix task order when using pgdg repo & Install the right pg version
2022-06-09 10:33:28 +02:00

17 lines
348 B
YAML

---
- name: "Set variables (Debian 9)"
set_fact:
postgresql_version: '9.6'
when: postgresql_version is none or postgresql_version | length == 0
- include: pgdg-repo.yml
when: postgresql_version != '9.6'
- name: Install postgresql package
apt:
name:
- "postgresql-{{postgresql_version}}"
- ptop
- libdbd-pg-perl