Hi
From my playbook using admin/password from vault to connect to PC and then list vms. From that result I select data and use in set_fact. When using length up to like 30 it seems to work, but I have like 200 VMs and I cannot see why thats is failiing, I would like to get all vms and not need to state length..
Â
- name: List VMS
 nutanix.ncp.ntnx_vms_info:
  nutanix_host: "{{ nutanix_host }}"
  nutanix_username: "{{ admin_secret.username }}"
  nutanix_password: "{{ admin_secret.secret }}"
  validate_certs: False
  filter:
   cluster_name: D2SEELM-NXC001  #testing only to select one cluster
   #vm_name: D2SEELM-LX0266
  kind: vm   #integer and default value in API
 #  sort_attribute: string
 #  sort_order: ASCENDING
  length: 30  #string
  offset: 0
 register: result
 no_log: "{{ ansible_debug }}"
Â
Â
- name: Collect VM values from file
 set_fact:
  all_vms: "{{ all_vms | default( ]) + Â{ 'Name' : item.status.name, 'SUBNET_name': item.status.resources.nic_listE0].subnet_reference.name, 'NIC_UUID': item.status.resources.nic_listI0].uuid }] }}"
 with_items: "{{ result.response.entities }}"Â