Data Backup and Recovery

Automate Disaster recovery for FlexGroup volumes with ansible modules

Álvaro
321 Views

Hi Community

 

I have problem to delete snapmirror with ansible module na_ontap_snapmirror.  When remove the snapmirror with module, the snapshot is removed in source, but I need this snapshot to reverse snapmirror relationship.

 

Does anyone know what the module options  to remove only the relationship of the enapmirror

 

This is the playbook:

 

- name: Snapmirror Break
na_ontap_snapmirror:
state: present
relationship_state: broken
source_path: 'SVM-NAS-XXXXXXE:FGPruebasPRE'
destination_path: 'SVM-XXX:FGPruebasCert'
source_hostname: "{{ Netapp_pre }}"
hostname: "{{ Netapp_cert }}"
username: "{{ user_admin }}"
password: "{{ pass_admin_cert }}"

- name: Snapmirror Delete
na_ontap_snapmirror:
state: absent
destination_path: 'SVM-XXX:FGPruebasCert'
source_path: 'SVM-NAS-XXXXXX:FGPruebasPRE'
source_hostname: "{{ Netapp_pre }}"
relationship_info_only: True
hostname: "{{ Netapp_cert }}"
username: "{{ user_admin }}"
password: "{{ pass_admin_cert }}"
https: true
validate_certs: false

 

Regards

 

0 REPLIES 0
Public