Skip to content

Commit

Permalink
Extension Auto-Setup: pgrouting
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Oct 8, 2023
1 parent 54b8fea commit d3f315b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
enable_pgaudit: true
enable_pgvector: true
enable_postgis: true
enable_pgrouting: true

- name: Set variables for PostgreSQL Cluster update test
ansible.builtin.set_fact:
Expand Down
17 changes: 17 additions & 0 deletions roles/packages/tasks/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,21 @@
when: enable_postgis | default(false) | bool
tags: postgis

# pgrouting (if 'enable_pgrouting' is 'true')
- name: Install pgrouting package
ansible.builtin.package:
name: >-
{% if ansible_os_family == 'Debian' %}
postgresql-{{ postgresql_version }}-pgrouting-3
{% else %}
pgrouting_{{ postgresql_version }}
{% endif %}
state: present
register: package_status
until: package_status is success
delay: 5
retries: 3
when: enable_pgrouting | default(false) | bool
tags: pgrouting

...

0 comments on commit d3f315b

Please sign in to comment.