goldyfruit.ibmcloud_automation.ic_is_instance_volume_info (1.0.4) — module

Retrieve attached volumes from a VSI on IBM Cloud.

| "added in version" 2.9 of goldyfruit.ibmcloud_automation"

Authors: Gaëtan Trellu (@goldyfruit)

preview | supported by community

Install collection

Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4


Add to requirements.yml

  collections:
    - name: goldyfruit.ibmcloud_automation
      version: 1.0.4

Description

A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve volume attachments from a VSI
  ic_is_instance_volume_info:
    instance: ibmcloud-vsi-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve specific volume attachment from a VSI
  ic_is_instance_volume_info:
    instance: ibmcloud-vsi-baby
    attachment: ibmcloud-volume-attachment-baby

Inputs

    
instance:
    description:
    - VSI (Virtual Server Instance) name or ID.
    required: true
    type: str

attachment:
    description:
    - The volume attachment identifier.
    type: str