#Compare source and destination export policy rule

1 messages · Page 1 of 1 (latest)

lament wigeon
#

Hi I want to compare source and destination export policy rule using ansible playbook with netapp.ontap.na_ontap_rest_info module.
Whild using "protocols/nfs/export-policies/rules" subset, policy_name,
svm_name and indexrule are required. I want to get the same output as CMD: "export-policy rule show -policyname * ", But when setting svmName value to '*', it will return error like: {"changed": false, "msg": "Could not find export policy * on SVM *"}
Any solution for this?

ashen juniper
#

Just remove the wildcard filters. You will get all policies without the filter anyway.

lament wigeon
#

@ashen juniper You mean remove the owning resources?

ashen juniper
#

yes

lament wigeon
#

No, the owning resources is required to be set when using this module

ashen juniper
#

Sorry, yo are correct. But the module doesn't work with wildcards in the way you like. You need to specify a unique value for svm_name and policy_name