diff --git a/ansible/roles/offline-installer/tasks/uploadToAzure.yml b/ansible/roles/offline-installer/tasks/uploadToAzure.yml
index 51249260bdd4bc26b8cb5773469628415d7ff7a7..67e8d7547a312720c1168002f9978254dfe40f0d 100644
--- a/ansible/roles/offline-installer/tasks/uploadToAzure.yml
+++ b/ansible/roles/offline-installer/tasks/uploadToAzure.yml
@@ -1,3 +1,8 @@
+- name: get the date and time for the artifact 
+  set_fact:
+    time: "{{ lookup('pipe', 'date +\"%Y-%b-%d-%H-%M-%S\"') }}-{{offline_installer_type}}"
+  when: uploadInstaller is not defined
+
 - name: Ensure azure blob storage container exists
   command: az storage container create  --name {{offline_installer_container_name}} --public-access off
   environment:
@@ -28,6 +33,13 @@
   set_fact:
     installer_version: "{{ version.stdout }}"
 
+- name: get the directory name
+  shell: "ls {{offline_repo_location}}/offline-installer-repo/offline_artifacts/"
+  register: folderName
+
+- debug:
+    msg: "{{folderName.stdout}}"
+
 - name: copy the installer artifacts to upload it to azure blob
   template:
     src: "{{item}}.j2"
@@ -55,13 +67,6 @@
   async: 60
   poll: 10
 
-- name: get the directory name
-  shell: "ls {{offline_repo_location}}/offline-installer-repo/offline_artifacts/"
-  register: folderName
-
-- debug:
-    msg: "{{folderName.stdout}}"
-
 - name: Upload to azure blob storage
   command: az storage blob upload-batch --destination "{{offline_installer_container_name}}/latest" --source "{{folderName.stdout}}"
   args: