#Ansible offline files?

1 messages · Page 1 of 1 (latest)

void widget
#

I want to automate the ::> cifs share create -share-name test -offline-files
none manual documents programs
command ; is this possible with the native netapp.ontap.na_ontap_cifs module in anyway? i could not find the right option

mystic hare
#

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`
void widget