#volume move using Ansible?

1 messages · Page 1 of 1 (latest)

halcyon beacon
#

Hi Everyone,

Greetings!

Do we have capability of volume move using Ansible na_ontap_volume module?

I am looking na_ontap_volume module but don't see much options for volume move.

https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_module.html#ansible-collections-netapp-ontap-na-ontap-volume-module

- name: Move volume with force cutover action
netapp.ontap.na_ontap_volume:
name: ansible_vol
aggregate_name: aggr_ansible
cutover_action: force
vserver: "{{ vserver }}" hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" https: false

Any suggestion would be helpful.

Thank you in advance.

glass halo
#

The volume module is kind of complex because it can do a bunch.

But as long as the Aggregate_name is different than where there volume is currently hosted. The module will call the api to move the volume.