Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created July 27, 2022 22:07
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/73a48c0d814565771b4da6e54067c906 to your computer and use it in GitHub Desktop.
Save gowatana/73a48c0d814565771b4da6e54067c906 to your computer and use it in GitHub Desktop.
- name: Get vApp VM info
hosts: localhost
gather_facts: false
tasks:
- name: get list of vms
vcd_vapp:
host: "lab-vcd-31.vcd.go-lab.jp"
api_version: "37.0"
org: "demo-org-01"
user: "org-01-admin"
password: "VMware1!"
verify_ssl_certs: false
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