volume_update – Performs the Volume Update Operations
Synopsis
This playbook helps in performing the Volume Update operations on the Volume provided.
Parameters
- name (True, str, None)
Name of the Volume
- id (optional, str, None)
ID of the Volume
- size (optional, int, None)
Size of the Volume
- enable_sharing_vm (optional, bool, None)
Enable sharing between the VMs of the Volume
Examples
- name: Volume Details Playbook
hosts: localhost
gather_facts: no
vars:
auth:
auth_url: https://<POWERVC>:5000/v3
project_name: PROJECT-NAME
username: USERID
password: PASSWORD
project_domain_name: PROJECT_DOMAIN_NAME
user_domain_name: USER_DOMAIN_NAME
tasks:
- name: Perform Volume Details Operation
ibm.powervc.volume_update:
auth: "{{ auth }}"
name: "VOLUME_NAME"
size: "SIZE"
validate_certs: no
register: result
- debug:
var: result
- name: Volume Details Playbook using Volume Name
hosts: localhost
gather_facts: no
tasks:
- name: Perform Volume Details Operation
ibm.powervc.volume_update:
cloud: "CLOUD_NAME"
id: "VOLUME_ID"
enable_sharing_vm: "ENABLE_SHARING_VM"
validate_certs: no
register: result
- debug:
var: result
- name: Volume Details Playbook using the Volume IDs
hosts: localhost
gather_facts: no
tasks:
- name: Perform Volume Details Operation
ibm.powervc.volume_update:
cloud: "CLOUD_NAME"
name: "VOLUME_NAME"
size: "SIZE"
validate_certs: no
register: result
- debug:
var: result
Status
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by PowerVC.