escrimaglia.o4n_azure_storagefile_test.o4n_azure_manage_shares (1.0.19) — module

Create or Delete a share in a Azure 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

Create a file share in a Storage File account when state param is eq to present

Delete a file share in a Storage File account when state param is eq to absent


Requirements

Inputs

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

state:
    choices:
    - present
    - absent
    default: present
    description: Create or delete a share
    required: false
    type: string

account_name:
    description: Storage Account Name Provided by Azure Portal
    required: true
    type: string

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 shares created or deleted
  returned: allways
  sample:
    output:
      changed: false
      content:
        share: share-to-test
      failed: false
      msg: File Share <share-to-test> <created> in account <octionstorage>
  type: dict