From d472c33e181ad916a0dfaecfe8204177a2581355 Mon Sep 17 00:00:00 2001 From: Jake Hutchinson Date: Fri, 29 Nov 2024 10:46:50 +0000 Subject: [PATCH] Variable for file extension --- etc/kayobe/ansible/pulp-image-upload.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/kayobe/ansible/pulp-image-upload.yml b/etc/kayobe/ansible/pulp-image-upload.yml index 5b83f4c0b..3144e03c0 100644 --- a/etc/kayobe/ansible/pulp-image-upload.yml +++ b/etc/kayobe/ansible/pulp-image-upload.yml @@ -7,6 +7,7 @@ remote_pulp_password: "{{ stackhpc_image_repository_password }}" repository_name: "kayobe-images-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}" pulp_base_path: "kayobe-images/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}" + file_extension: '*.qcow2' tasks: - name: Print image tag debug: @@ -15,7 +16,7 @@ - name: Get filename find: paths: "{{ image_path }}" - patterns: '*.qcow2' + patterns: "{{ file_extension }}" register: found_files - name: Upload an artifact