nutanix / nutanix.ansible

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

make ntnx.vms module idempotent #306

Open thewelshvader opened 2 years ago

thewelshvader commented 2 years ago

Running the same playbook twice using the ntnx.vms module results in two VMs created with identical names. Default for ansible should be to ensure the object exists, and only create new objects if not.

A parameter could be added to the module to explicitly allow this behaviour in rare circumstances.

Eg.

allow_duplicate_names: True

(default should be False)