add bullseye compatibility

This commit is contained in:
Morre 2021-10-15 17:58:40 +02:00
parent 60a93e9fdd
commit d10678a27e
No known key found for this signature in database
GPG key ID: F36FB77CA7C2E7B2
2 changed files with 7 additions and 2 deletions

View file

@ -2,9 +2,14 @@
apt: apt:
pkg: pkg:
- postgresql - postgresql
- python-psycopg2
- python3-psycopg2 - python3-psycopg2
- name: install python2 psycopg2
apt:
pkg:
- python-psycopg2
when: ansible_distribution_release == 'stretch'
- name: generate pg_hba - name: generate pg_hba
template: template:
src: pg_hba.conf.j2 src: pg_hba.conf.j2

View file

@ -1 +1 @@
pg_version: "{% if ansible_distribution_release == 'stretch' %}9.6{% endif %}{% if ansible_distribution_release == 'buster' %}11{% endif %}" pg_version: "{% if ansible_distribution_release == 'stretch' %}9.6{% endif %}{% if ansible_distribution_release == 'buster' %}11{% endif %}{%if ansible_distribution_release == 'bullseye' %}13{% endif %}"