Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

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,

  1. vcd_catalog
  2. vcd_catalog_item
  3. vcd_disk
  4. vcd_external_network
  5. vcd_org
  6. vcd_org_vdc
  7. vcd_roles
  8. vcd_user
  9. vcd_vapp
  10. vcd_vapp_network
  11. vcd_vapp_vm
  12. vcd_vapp_vm_disk
  13. vcd_vapp_vm_nic
  14. vcd_vapp_vm_snapshot
  15. vcd_vdc_gateway
  16. vcd_gateway_services
  17. vcd_vdc_network




Environment Settings


  1. Login

  2. 
     - 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.

    1. 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.
    2. 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).

    By default, the priority will be given to Local Variables than Environment Variables.

Clone this wiki locally