community / community.general / 1.3.14 / module / na_cdot_volume
Removed in 2.0.0
Reason:Updated modules released with increased functionality | Alternative:Use M(netapp.ontap.na_ontap_volume) instead.
Manage NetApp cDOT volumes
Authors: Sumit Kumar (@timuster) <sumit4@netapp.com>
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Create or destroy volumes on NetApp cDOT
- name: Create FlexVol community.general.na_cdot_volume: state: present name: ansibleVolume infinite: False aggregate_name: aggr1 size: 20 size_unit: mb vserver: ansibleVServer hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" junction_path: /ansibleVolume export_policy: all_nfs_networks snapshot_policy: daily
- name: Make FlexVol offline community.general.na_cdot_volume: state: present name: ansibleVolume infinite: False online: False vserver: ansibleVServer hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}"
name: description: - The name of the volume to manage. required: true size: description: - The size of the volume in (size_unit). Required when C(state=present). state: choices: - present - absent description: - Whether the specified volume should exist or not. required: true online: default: 'yes' description: - Whether the specified volume is online, or not. type: bool vserver: description: - Name of the vserver to use. required: true hostname: description: - The hostname or IP address of the ONTAP instance. required: true infinite: default: 'no' description: - Set True if the volume is an Infinite Volume. type: bool password: aliases: - pass description: - Password for the specified user. required: true username: aliases: - user description: - This can be a Cluster-scoped or SVM-scoped account, depending on whether a Cluster-level or SVM-level API is required. For more information, please read the documentation U(https://mysupport.netapp.com/NOW/download/software/nmsdk/9.4/). required: true size_unit: choices: - bytes - b - kb - mb - gb - tb - pb - eb - zb - yb default: gb description: - The unit used to interpret the size parameter. export_policy: default: default description: - Export policy to set for the specified junction path. required: false junction_path: description: - Junction path where to mount the volume required: false aggregate_name: description: - The name of the aggregate the flexvol should exist on. Required when C(state=present). snapshot_policy: default: default description: - Snapshot policy to set for the specified volume. required: false