Skip to content

Commit

Permalink
Added OCI vars for offline desktop upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tsprasath authored Jan 20, 2024
1 parent a55f510 commit bbfef12
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ansible/roles/desktop-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,30 @@
gcp_path: "latest"
local_file_or_folder_path: "{{ offline_repo_location }}/desktop_uploader_assets/{{ time }}/"
when: cloud_service_provider == "gcloud"

### OCI Tasks ###
- name: this block consists of tasks related to OCI
block:
- name: set common oci variables
set_fact:
oss_bucket_name: "{{ cloud_storage_offlineinstaller_bucketname }}"
oss_path: "{{ offline_installer_storage }}/latest"
local_file_or_folder_path: "{{ offline_repo_location }}/desktop_uploader_assets"

- name: upload batch of files to oci oss
include_role:
name: oci-cloud-storage
tasks_from: upload-folder.yml
vars:
oss_path: "{{ offline_installer_storage }}"
local_file_or_folder_path: "{{ offline_repo_location }}/desktop_uploader_assets"

- name: upload batch of files to oci oss
include_role:
name: oci-cloud-storage
tasks_from: upload-folder.yml
vars:
oss_path: "{{ offline_installer_storage }}/latest"
local_file_or_folder_path: "{{ offline_repo_location }}/desktop_uploader_assets/{{ time }}/"
when: cloud_service_provider == "oci"

0 comments on commit bbfef12

Please sign in to comment.