Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added OCI vars for offline desktop upload #3954

Merged
merged 3 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 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,29 @@
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 }}"
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"