Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pgvectorscale tasks execution in check_mode #846

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading