Unverified Commit a5f85338 authored by santhosh-tg's avatar santhosh-tg Committed by GitHub
Browse files

Change condition to match boolean (#3623)

Showing with 3 additions and 3 deletions
+3 -3
......@@ -3,7 +3,7 @@
include_role:
name: azure-cloud-storage
tasks_from: container-create.yml
when: create_container == "True"
when: create_container == True
- name: upload files and folders - uploading {{ blob_container_name }}{{ blob_container_folder_path }}
shell: "az storage blob upload-batch --destination {{ blob_container_name }}{{ blob_container_folder_path }} --source {{ local_file_or_folder_path }} --account-name {{ storage_account_name }} --account-key {{ storage_account_key }}"
......
......@@ -3,7 +3,7 @@
include_role:
name: azure-cloud-storage
tasks_from: container-create.yml
when: create_container == "True"
when: create_container == True
- name: upload file to azure storage container
shell: "az storage blob upload --container-name {{ blob_container_name }} --file {{ local_file_or_folder_path }} --name {{ blob_file_name }} --account-name {{ storage_account_name }} --account-key {{ storage_account_key }}"
......
......@@ -3,7 +3,7 @@
include_role:
name: azure-cloud-storage
tasks_from: container-create.yml
when: create_container == "True"
when: create_container == True
- name: upload files and folders to azure storage using azcopy
shell: "azcopy copy {{ local_file_or_folder_path }} 'https://{{ storage_account_name }}.blob.core.windows.net/{{ blob_container_name }}{{ blob_container_folder_path }}{{ storage_account_sas_token }}' --recursive"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment