From 6748f4f4209860ffff105db8810812d43b9d61e0 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:38:51 +0500 Subject: [PATCH] Allow pgvectorscale tasks execution in check_mode (#846) --- automation/molecule/default/converge.yml | 1 - automation/roles/packages/tasks/extensions.yml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/automation/molecule/default/converge.yml b/automation/molecule/default/converge.yml index 69f3cafbf..5bf862a2c 100644 --- a/automation/molecule/default/converge.yml +++ b/automation/molecule/default/converge.yml @@ -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. diff --git a/automation/roles/packages/tasks/extensions.yml b/automation/roles/packages/tasks/extensions.yml index f052afc66..f4ca74682 100644 --- a/automation/roles/packages/tasks/extensions.yml +++ b/automation/roles/packages/tasks/extensions.yml @@ -250,6 +250,7 @@ | from_json).get('tag_name') | replace('v', '') }} + check_mode: false when: pgvectorscale_version | default('latest') == 'latest' - name: Download pgvectorscale archive @@ -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"