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

1 messages · Page 1 of 1 (latest)

split forge
#

Hi Team, a Japanese user has posted on our community forum asking a query about using the gather_subset module.

Putting the text into google translate seems to be fairly clear, and the attached screenshot on the post has a clear error message.

Any help would be appreciated on the community post - https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansibleの-gather-subset-Specifying-the-module-with-quot-all-quot-will-result-in/td-p/447007

rustic peak
#

So from the image they posted, based off the play name they gave

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