I'm trying to use the Azure driver with Molecule, to test Ansible windows role on a virtual machine created in Azure Cloud.
The Windows virtual machine is successfully created on Azure Cloud with molecule setup.
But molecule is unable to connect to the VM over WinRM unless I manually provide the IP address.
Molecule and Ansible details are here below
molecule 5.1.0 using python 3.9
ansible:2.15.2
azure:0.5.0 from molecule_azure
delegated:5.1.0 from molecule
error message
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "basic: HTTPSConnectionPool(host='instance', port=5986): Max retries exceeded with url: /wsman (Caused by NameResolutionError(\"<urllib3.connection.HTTPSConnection object at 0x7ff698466ee0>: Failed to resolve 'instance' ([Errno -2] Name or service not known)\"))", "unreachable": true}
Issue Description
I'm trying to use the Azure driver with Molecule, to test Ansible windows role on a virtual machine created in Azure Cloud. The Windows virtual machine is successfully created on Azure Cloud with molecule setup. But molecule is unable to connect to the VM over WinRM unless I manually provide the IP address.
Molecule and Ansible details are here below
molecule 5.1.0 using python 3.9 ansible:2.15.2 azure:0.5.0 from molecule_azure delegated:5.1.0 from molecule
error message
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "basic: HTTPSConnectionPool(host='instance', port=5986): Max retries exceeded with url: /wsman (Caused by NameResolutionError(\"<urllib3.connection.HTTPSConnection object at 0x7ff698466ee0>: Failed to resolve 'instance' ([Errno -2] Name or service not known)\"))", "unreachable": true}
molecule.yml
Please let me know any further details need from my end.