Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created May 31, 2021 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/b3775562f34ba425231fb4f11250e0d8 to your computer and use it in GitHub Desktop.
Save gowatana/b3775562f34ba425231fb4f11250e0d8 to your computer and use it in GitHub Desktop.
---
- name: Ansible x Nutnaix Test
hosts: localhost
connection: local
gather_facts: no
vars:
prism_address: "Prism IP Address or FQDN"
prism_username: "admin"
prism_password: "nutanix/4u"
tasks:
- name: Get Cluster Info
uri:
url: "https://{{ prism_address }}:9440/api/nutanix/v2.0/clusters/"
method: GET
user: "{{ prism_username }}"
password: "{{ prism_password }}"
body_format: json
force_basic_auth: yes
validate_certs: no
status_code: 200
register: nutanix_clusters
- name: Output Cluster Info
debug:
var: nutanix_clusters.json.entities
@gowatana
Copy link
Author

下記の投稿むけ。

Nutanix CE / AHV に Ansible のインストールされた VM 作成してみる。(Cloud-init 編)
https://blog.ntnx.jp/entry/2021/05/31/212446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment