Skip to content

Commit

Permalink
Fixes for postgresql in u24.04 (#834) (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj authored Sep 13, 2024
1 parent c253be2 commit a5af90f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/postgresql/tasks/apt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

- name: pip3 psycopg2
command: pip3 install psycopg2
when: ansible_python.version.major==3
when: ansible_python.version.major==3 and ansible_os_family == "Debian" and ansible_distribution_version is version('24.04', '<')
tags: postgresql

- name: install python-software-properties (Debian)
Expand Down
11 changes: 11 additions & 0 deletions ansible/roles/postgresql/vars/Ubuntu-24.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
postgresql_service: postgresql

gdal_src_url: http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz

postgresql_data_directory: "{{ data_dir }}/postgresql-{{pg_version}}-data"

psycopg2_package: "python3-psycopg2"

pycurl_package: "python3-pycurl"

pip_package: "python3-pip"

0 comments on commit a5af90f

Please sign in to comment.