This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
vCD Ansible Modules
mac edited this page Aug 20, 2020
·
27 revisions
These Ansible Modules help to manage Day 0 operations on VMware vCloud Director. Following are the available modules based on Ansible which helps to automate the workflow onto VMware vCloud Director Platform,
- vcd_catalog
- vcd_catalog_item
- vcd_disk
- vcd_external_network
- vcd_org
- vcd_org_vdc
- vcd_roles
- vcd_user
- vcd_vapp
- vcd_vapp_network
- vcd_vapp_vm
- vcd_vapp_vm_disk
- vcd_vapp_vm_nic
- vcd_vapp_vm_snapshot
- vcd_vdc_gateway
- vcd_gateway_services
- vcd_vdc_network
- Environment Variables - The end user can set login variables in the environment as shown above. Once they are set, modules will use these variables for all the subsequent resource operations automatically.
- Local Variables - The end user can set login variables for specific module(s) as local variables. This approach gives more freedom to the end user to execute specific module(s) on specific vCloud Director instance(s).
- name: vCloudDirectorAnsible
hosts: localhost
environment:
env_user: VCD_USER_NAME
env_password: VCD_USER_PASSWORD
env_host: VCD_URL ## VCD Instance URL
env_org: VCD_ORG ## VCD ORG to login
env_api_version: PYVCLOUD_API_VERSION
env_verify_ssl_certs: false
VCD Ansible Modules prefer following two ways to set login variables for vCloud Director instance.
By default, the priority will be given to Local Variables than Environment Variables.