From 98070fb81c4c526a5113b5e370c4144f1442214f Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Wed, 6 Mar 2024 09:43:35 +0100 Subject: [PATCH] support previous checksum format --- roles/adf_app/meta/argument_specs.yml | 2 +- roles/adf_app/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/adf_app/meta/argument_specs.yml b/roles/adf_app/meta/argument_specs.yml index f4e46cd9d..f3a87f872 100644 --- a/roles/adf_app/meta/argument_specs.yml +++ b/roles/adf_app/meta/argument_specs.yml @@ -31,7 +31,7 @@ argument_specs: type: str required: true description: | - URL of the checksum of the archive that contains the adf app. + URL of the checksum of the archive that contains the adf app or the sha1 checksum. adf_app_version: type: str required: true diff --git a/roles/adf_app/tasks/main.yml b/roles/adf_app/tasks/main.yml index a39db971a..c27d65cc6 100644 --- a/roles/adf_app/tasks/main.yml +++ b/roles/adf_app/tasks/main.yml @@ -11,7 +11,7 @@ - adf_app_src_archive is defined - adf_app_src_archive is url - adf_app_src_checksum is defined - - adf_app_src_checksum is url + - adf_app_src_checksum is url or adf_app_src_checksum is match("^[a-fA-F0-9]{40}$") - name: Create "{{ nginx_default_vhost_docroot }}/{{ adf_app_name }}/" dir become: true