]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
chacra-pull-requests: Install correct version of psycopg2 1904/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 9 Sep 2021 20:36:32 +0000 (16:36 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 9 Sep 2021 20:36:32 +0000 (16:36 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
chacra-pull-requests/setup/playbooks/tasks/postgresql.yml

index aa44d2c542e7446c69610889032e34bb383f197e..d18d13aada9ceb2cb3e6129ada405c50325ca05d 100644 (file)
 - 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