From: David Galloway Date: Thu, 9 Sep 2021 20:36:32 +0000 (-0400) Subject: chacra-pull-requests: Install correct version of psycopg2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef3a7b95bc0f6f3b3e9f02437a62fe7f1fbbfd6c;p=ceph-build.git chacra-pull-requests: Install correct version of psycopg2 Signed-off-by: David Galloway --- diff --git a/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml b/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml index aa44d2c5..d18d13aa 100644 --- a/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml +++ b/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml @@ -17,11 +17,13 @@ - name: set postgresql version on bionic set_fact: postgresql_version: "10" + python_version: "3" when: ansible_distribution_release == "bionic" - name: set postgresql version on focal set_fact: postgresql_version: "12" + python_version: "3" when: ansible_distribution_release == "focal" - name: install postgresql requirements @@ -34,7 +36,7 @@ - postgresql-common - postgresql-contrib - "postgresql-server-dev-{{ postgresql_version }}" - - python-psycopg2 + - "python{{ python_version|default('') }}-psycopg2" tags: - packages