nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
67 stars 41 forks source link

[Feat] Develop ansible module for Any #489

Open xerxist opened 4 months ago

xerxist commented 4 months 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 3 months ago

@xerxist Can you elaborate your request, thanks !

xerxist commented 3 months 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 3 months 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 3 months 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.