Created
May 31, 2021 12:06
-
-
Save gowatana/b3775562f34ba425231fb4f11250e0d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
Nutanix CE / AHV に Ansible のインストールされた VM 作成してみる。(Cloud-init 編)
https://blog.ntnx.jp/entry/2021/05/31/212446