nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
64 stars 36 forks source link

[Feat] Develop ansible module for Any #489

Open xerxist opened 1 month ago

xerxist commented 1 month ago

Requirements:

Can you please start using Ansible standards instead of making your own flavor.

Like for instance a VM name to be absent instead of looking up the UUID via a another module fist. It makes things very complicated overcoded.

bhati-pradeep commented 1 month ago

@xerxist Can you elaborate your request, thanks !

xerxist commented 1 month ago

As an example

Instead of this.

To this.

Otherwise you have get the output of the uiid first which makes things overcoded and complicated.

bhati-pradeep commented 1 month ago

Hi @xerxist, Prism Central supports multiple VM with same names. So thats why we have kept vm uuid as unique identifier for update or delete. You can refer : https://github.com/nutanix/nutanix.ansible/issues/284 where discussions are done on this.

xerxist commented 1 month ago

Im not sure what the benefit is.

As I would have to list the vm from the ntnx_vms_info module register the result and if a machine pops up in there twice it would do the same thing.

Only thing is you can do is some debug on that output.