Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active July 27, 2022 22:23
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/fe29c18be76cbefa7cd7c67b3b94d376 to your computer and use it in GitHub Desktop.
Save gowatana/fe29c18be76cbefa7cd7c67b3b94d376 to your computer and use it in GitHub Desktop.
- name: Get vApp VM info
hosts: localhost
gather_facts: false
environment:
env_host: "lab-vcd-31.vcd.go-lab.jp"
env_org: "demo-org-01"
env_user: "org-01-admin"
env_password: "VMware1!"
env_api_version: "37.0"
env_verify_ssl_certs: false
tasks:
- name: get list of vms
vcd_vapp:
vdc: "org-vdc-01"
vapp_name: "vapp-01"
operation: "list_vms"
register: vms
- name: output
debug:
var: vms
@gowatana
Copy link
Author

下記の投稿むけ

VMware Cloud Director 10.4 を Ansible で操作してみる。Part-01 環境構築編
https://vm.gowatana.jp/entry/2022/07/28/072134

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