Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 889 Bytes

README.md

File metadata and controls

43 lines (37 loc) · 889 Bytes

ansible-ahv-provider-plugin

Ansible plugin to integrate with Nutanix Enterprise Cloud

Building and installing the collection locally

ansible-galaxy collection build
ansible-galaxy collection install nutanix-nutanix-0.0.1-rc1.tar.gz

Add --force option for rebuilding or reinstalling to overwrite existing data

Included modules

nutanix_image_info
nutanix_image
nutanix_vm_info
nutanix_vm

Inventory plugin

nutanix_vm_inventory

Module documentation and examples

ansible-doc nutanix.nutanix.<module_name>

Examples

Playbook to print name of vms in PC

- hosts: localhost
  collections:
  - nutanix.nutanix
  tasks:
  - nutanix_vm_info:
      pc_hostname: {{ pc_hostname }}
      pc_username: {{ pc_username }}
      pc_password: {{ pc_password }}
      validate_certs: False
    register: result
  - debug:
      msg: "{{ result.vms }}"