Software Development Kit (SDK) and API Discussions

Ansibleの「gather_subset」Specifying the module with "all" will result in an error

mao
2,291 Views

-admin権限でreadonlyのユーザーをAnsible用に作成

<NetApp>

ONTAP9.12.1P5 FAS2750

 

<Python関連> ansible 6.2.0 ansible-core 2.13.3 netapp-lib 2020.3.12

<ansible-galaxy関連>※モジュールコレクションのことです netapp.ontap 21.21.0

 

Admin edit with subject translation:

Specifying the module with "all" will result in an error.

1 ACCEPTED SOLUTION

RossC
2,144 Views

Hi @mao 

 

We don't have Japanese language coverage here on our forum, so apologies for the response being in English. 

 

I shared your post with some of our Ansible community on our NetApp Community Discord - https://discord.com/channels/855068651522490400/1141905680773677138

 

Their feedback was as follows:

 

It look like they set subset to all which isn't documented in our documentation, and would not recommend anyone do. So i'm not sure how they found that hidden opened. Problem with that option is it will call every single REST GET (https://library.netapp.com/ecmdocs/ECMLP2885799/html/) and if any one of them fail they whole function will fail In this case their case they hit /cluster/metrocluster which they don't have enable so the REST api return that message. What they should be doing is adding just the subset they want to be geting info from, and not all sub sets.

View solution in original post

1 REPLY 1

RossC
2,145 Views

Hi @mao 

 

We don't have Japanese language coverage here on our forum, so apologies for the response being in English. 

 

I shared your post with some of our Ansible community on our NetApp Community Discord - https://discord.com/channels/855068651522490400/1141905680773677138

 

Their feedback was as follows:

 

It look like they set subset to all which isn't documented in our documentation, and would not recommend anyone do. So i'm not sure how they found that hidden opened. Problem with that option is it will call every single REST GET (https://library.netapp.com/ecmdocs/ECMLP2885799/html/) and if any one of them fail they whole function will fail In this case their case they hit /cluster/metrocluster which they don't have enable so the REST api return that message. What they should be doing is adding just the subset they want to be geting info from, and not all sub sets.

Public