#Ansible offline files?
1 messages · Page 1 of 1 (latest)
just found the issue on github https://github.com/ansible-collections/netapp.ontap/issues/201
@grand gull
I use the following workaround currently:
`
- name: Get SVM UUID for cifs share modification
netapp.ontap.na_ontap_rest_info:
gather_subset: svm/svms
use_python_keys: true
parameters:
name: "{{ vserver_name }}"
register: svm
- name: Set share property offline_files to none
netapp.ontap.na_ontap_restit:
api: protocols/cifs/shares/{{ svm.ontap_info.svm_svms.records[0].uuid }}/{{ cifs_share_name }}
method: PATCH
body:
offline_files: none`
thank you @mystic hare for sharing the code!