escrimaglia.o4n_azure_storagefile_test.o4n_azure_upload_files (1.0.19) — module

Upload files to a share Storage File

| "added in version" 1.0 of escrimaglia.o4n_azure_storagefile_test"

Authors: Ed Scrimaglia

Install collection

Install with ansible-galaxy collection install escrimaglia.o4n_azure_storagefile_test:==1.0.19


Add to requirements.yml

  collections:
    - name: escrimaglia.o4n_azure_storagefile_test
      version: 1.0.19

Description

Connect to Azure Storage file using connection string method

Upload files to a share in a Storage File account

Return a list of uploaded files


Requirements

Inputs

    
files:
    choices:
    - file*
    - file*.txt
    - file*.tx*
    - file*.*
    - file.tx*
    - '*.txt'
    - file.*
    - '*.*'
    - file.txt
    description: files to deleted from File ShRE
    required: true
    type: string

share:
    description: Name of the share to be managed
    required: true
    type: string

dest_path:
    description: path, directory where files must be uploaded
    required: false
    type: string

source_path:
    description: path, local directory where files to be uploaded are

connection_string:
    description:
    - String that include URL & Token to connect to Azure Storage Account. Provided by
      Azure Portal
    - Storage Account -> Access Keys -> Connection String
    required: true
    type: string

Outputs

output:
  description: List of files uploaded
  returned: allways
  sample:
    output:
      changed: false
      content:
      - o4n_azure_list_files.py
      - o4n_azure_list_shares.py
      - o4n_azure_download_files.py
      - o4n_azure_manage_shares.py
      - __init__.py
      - o4n_azure_manage_directory.py
      - o4n_azure_upload_files.py
      - o4n_azure_delete_files.py
      - o4n_azure_list_directories.py
      failed: false
      msg: Files uploaded to Directory </dir1> in share <share-to-test2>
  type: dict