Le 27/06/2017 à 11:28, Mehdi B a écrit : > Hi, > > Getting this error: > > ansible-playbook -i inventory.azur demo.yml > > PLAY [localhost] > ******************************************************************************************************************** > > > TASK [Gathering Facts] > ************************************************************************************************************** > > ok: [localhost] > > TASK [create ressource group] > ******************************************************************************************************* > > An exception occurred during task execution. To see the full > traceback, use -vvv. The error was: ImportError: No module named > packaging.version > fatal: [localhost]: FAILED! => {"changed": false, "failed": true, > "module_stderr": "Traceback (most recent call last):\n File > \"/tmp/ansible_a_XnCB/ansible_module_azure_rm_resourcegroup.py\", line > 107, in <module>\n from ansible.module_utils.azure_rm_common import > *\n File > \"/tmp/ansible_a_XnCB/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\", > line 29, in <module>\nImportError: No module named > packaging.version\n", "module_stdout": "", "msg": "MODULE FAILURE", > "rc": 0} > to retry, use: --limit @/root/work/azureAnsible/demo.retry > > PLAY RECAP > ************************************************************************************************************************** > > localhost : ok=1 changed=0 unreachable=0 > failed=1 > > > > I installed azure as required even with: > > pip install azure --upgrade > > and got 2.0.0 not even the RC. So on this side seems ok. Tested on 2 > different servers. > > My azure inventory subscription ID is ok and works fine with terraform. > > My playbook mimic the doc found here: > > > https://docs.ansible.com/ansible/azure_rm_resourcegroup_module.html > > --- > - hosts: localhost > connection: local > tasks: > - name: create ressource group > azure_rm_resourcegroup: > name: testing > location: westus > > So any tips ? I knowledge this is not a core module. > > Thanks
Hi, Seems something is wrong with python/ansible... For Azure you need python 2.7 as written in documentation What distribution did you use ? How did you install python ? How did you install pip ? https://github.com/ansible/ansible/issues/24275 Regards, JYL -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e6aa34b3-c359-d3bb-fb47-11688f444bc2%40lenhof.eu.org. For more options, visit https://groups.google.com/d/optout.