provision instance on AZURE

36 views
Skip to first unread message

yaniv refael

unread,
Apr 10, 2016, 6:32:55 AM4/10/16
to Ansible Project
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 <module>
    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!!!

J Hawkesworth

unread,
Apr 12, 2016, 9:10:39 AM4/12/16
to Ansible Project
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?



Hope this helps,

Jon
Reply all
Reply to author
Forward
0 new messages