Skip to content
Snippets Groups Projects
Commit fe137b0a authored by Lars Beckers's avatar Lars Beckers
Browse files

postgres: remove py2 package install for bullseye

parent e4f160cc
No related branches found
No related tags found
1 merge request!3Bullseye Compatibility
......@@ -19,11 +19,17 @@
name:
# yamllint disable-line rule:line-length
- postgresql{{ "-{}".format(postgres_version) if postgres_version is defined }}
- python-psycopg2
- python3-psycopg2
- libpq-dev
state: present
- name: ensure legacy postgres packages are installed
apt:
name:
- python-psycopg2
state: present
when: ansible_distribution_major_version|int(default=99) < 11
- name: ensure postgres is started
service:
name: postgresql
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment