ansible-roles/postgresql/tasks/packages_bullseye.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
350 B
YAML

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