Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created August 25, 2023 13:59
Show Gist options
  • Select an option

  • Save gowatana/7aceaa5557c2559ff8ab305810eb7adb to your computer and use it in GitHub Desktop.

Select an option

Save gowatana/7aceaa5557c2559ff8ab305810eb7adb to your computer and use it in GitHub Desktop.
---
- name: Get snapshot info
hosts: localhost
connection: local
gather_facts: no
collections:
- nutanix.ncp
module_defaults:
group/nutanix.ncp.ntnx:
nutanix_host: "lab-ndb-01.go-lab.jp"
nutanix_username: "admin"
nutanix_password: "nutanix/4u"
validate_certs: false
tasks:
- name: Get Snapshot info
ntnx_ndb_snapshots_info:
register: snapshots
- name: Output Snapshot info
debug:
var: snapshots.response
- name: Save to JSON file
copy:
content: "{{ snapshots.response }}"
dest: "./snapshots.json"
@gowatana
Copy link
Author

下記の投稿むけ。

Nutanix DevStation から NDB を操作してみる。(Nutanix Meetup Hybrid 23.08)
https://blog.ntnx.jp/entry/2023/08/24/090623

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