ansible-module-vcloud-director
ansible-module-vcloud-director copied to clipboard
Can't connect to vcd
Hello,
I want to get informations for a specific VM in a organisation.
I'm not able to connect to VCD using ansible-playbook 2.10.15 & ansible-module-vcloud-directory and VCD 10.3.1 using the following play :
- hosts: localhost
gather_facts: false
connection : local
tasks:
- name: get metadata for vm vcd_vapp: user: "david" password: "************" accept_all_eulas: "false" verify_ssl_certs: "false" host: "myvcdserver.org.com" org: "MYTESTORG" vapp_name: "BAS_TEST_O1" vdc: "MYTESTORG" vm_name: "BA-XS-01" operation: "get_meta"
I get :
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1634892399.1068623-4070-240004511659771/AnsiballZ_vcd_vapp.py", line 102, in
Thank you for your help
@davbeny, as per the error message, somehow your VDC is not part of the given org. While trying to fetch the VDC information from org, it is returning None
.