-
-
Save gowatana/7aceaa5557c2559ff8ab305810eb7adb to your computer and use it in GitHub Desktop.
This file contains hidden or 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: 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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
Nutanix DevStation から NDB を操作してみる。(Nutanix Meetup Hybrid 23.08)
https://blog.ntnx.jp/entry/2023/08/24/090623