Skip to content

Commit

Permalink
Allow pgvectorscale tasks execution in check_mode (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Dec 13, 2024
1 parent 5905415 commit 6748f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion automation/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
# enable_citus: true # TODO Postgres 17
enable_paradedb: "{{ 'false' if ansible_distribution_release == 'bullseye' else 'true' }}" # pg_search and pg_analytics (no packages for debian 11)
enable_pgvectorscale: "{{ 'true' if ansible_distribution_release in ['bookworm', 'jammy', 'noble'] else 'false' }}" # only deb packages are available
pgvectorscale_version: "0.5.0" # TODO (v0.5.1 does not contain packages)
# create extension
postgresql_schemas:
- { schema: "paradedb", db: "postgres", owner: "postgres" } # pg_search must be installed in the paradedb schema.
Expand Down
3 changes: 3 additions & 0 deletions automation/roles/packages/tasks/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
| from_json).get('tag_name')
| replace('v', '')
}}
check_mode: false
when: pgvectorscale_version | default('latest') == 'latest'

- name: Download pgvectorscale archive
Expand All @@ -258,12 +259,14 @@
dest: "/tmp/{{ pgvectorscale_archive }}"
timeout: 60
validate_certs: false
check_mode: false

- name: Extract pgvectorscale package
ansible.builtin.unarchive:
src: "/tmp/{{ pgvectorscale_archive }}"
dest: "/tmp/"
remote_src: true
check_mode: false

# Debian (only deb packages are available)
- name: "Install pgvectorscale v{{ pgvectorscale_version }} package"
Expand Down

0 comments on commit 6748f4f

Please sign in to comment.