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

Add OCI vars for desktop offline upload #37

Open
wants to merge 3 commits into
base: oci-5.1.0
Choose a base branch
from
Open
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
25 changes: 25 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,28 @@
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"