provision instance on AZURE

Hi,

I tried to provision instance on azure (ansible-playbook -i /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py azure.yml) and I got the flowing error:

ERROR! The file /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this with chmod -x /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py.
ERROR! Inventory script (/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py) had an execution error: Traceback (most recent call last):
File “/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py”, line 610, in
main()
File “/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py”, line 537, in main
enable_winrm=dict(type=‘bool’, default=True),
File “/usr/lib/pymodules/python2.7/ansible/module_utils/basic.py”, line 528, in init
self.params = self._load_params()
File “/usr/lib/pymodules/python2.7/ansible/module_utils/basic.py”, line 1389, in _load_params
params = json_dict_unicode_to_bytes(json.loads(MODULE_COMPLEX_ARGS))
File “/usr/lib/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

Help!!!

Not sure what your specific problem is but there is a bunch of work being done on the Azure side of things at the moment with new modules being worked on at the moment.

Have a look at these Pull Requests on github - perhaps you can help out with testing?

https://github.com/ansible/ansible/pull/15358

https://github.com/ansible/ansible/pull/15360

Hope this helps,

Jon