copy_volume_type – Takes Copy of the Volume Types/Storage Template.
Synopsis
This playbook helps in performing the Copy operations on the Volume Type provided.
Parameters
- name (optional, str, None)
Name of the Volume Type/Storage Template
- id (optional, str, None)
ID of the Volume Type/Storage Template
- copy_voltype_name (True, str, None)
Name of the Copy Volume Type/Storage Template
Examples
- name: Volume Type Copy 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 VM Clone Operation on VM with network
ibm.powervc.copy_volume_type:
auth: "{{ auth }}"
name: "VOL_TYPE_NAME"
copy_voltype_name: "COPY_VOLTYPE_NAME"
validate_certs: no
register: result
- debug:
var: result
- name: Volume Type Copy 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 VM Clone Operation on VM with network and IP details
ibm.powervc.copy_volume_type:
auth: "{{ auth }}"
vm_name: "VOL_TYPE_NAME"
copy_voltype_name: "COPY_VOLTYPE_NAME"
validate_certs: no
register: result
- debug:
var: result
- name: Volume Type Copy Playbook
hosts: localhost
gather_facts: no
tasks:
- name: Perform VM Clone Operation on VM with network and IP details
ibm.powervc.copy_volume_type:
cloud: "CLOUD_NAME"
id: "VOL_TYPE_ID"
copy_voltype_name: "COPY_VOLTYPE_NAME"
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.