please suggest 

On Wednesday, May 16, 2018 at 5:04:34 PM UTC+2, Irfan Sayed wrote:

> yes. I did that already and here is the output.
>
> [root@centos]# pip install packaging
> Requirement already satisfied (use --upgrade to upgrade): packaging in 
> /usr/lib/python2.7/site-packages
>
>
> On Wednesday, May 16, 2018 at 4:33:57 PM UTC+2, Nick Rogers wrote:
>
>> Have you tried running
>>
>>     pip install packaging
>>
>> On Wednesday, May 16, 2018 at 8:43:06 AM UTC-5, Irfan Sayed wrote:
>>>
>>> please suggest. I m stuck 
>>>
>>> On Wednesday, May 16, 2018 at 10:05:08 AM UTC+2, Irfan Sayed wrote:
>>>>
>>>> Hello,
>>>>
>>>> I am trying to create the azure VM using ansible module : 
>>>> azure_rm_virtualmachine
>>>> document referred : 
>>>> *https://docs.ansible.com/ansible/2.4/azure_rm_virtualmachine_module.html* 
>>>> <https://docs.ansible.com/ansible/2.4/azure_rm_virtualmachine_module.html>
>>>>
>>>>
>>>> *Actual error*
>>>>
>>>> TASK [azure_vm_create : Create azure vm] 
>>>> ****************************************************************************************************************************************************
>>>> fatal: [worker1]: FAILED! => {"changed": false, "module_stderr": 
>>>> "Shared connection to worker1 closed.\r\n", "module_stdout": "Traceback 
>>>> (most recent call last):\r\n File 
>>>> "/tmp/ansible_3PPl_f/ansible_module_azure_rm_virtualmachine.py", line 556, 
>>>> in \r\n from ansible.module_utils.azure_rm_common import 
>>>> AzureRMModuleBase, 
>>>> azure_id_to_dict\r\n File 
>>>> "/tmp/ansible_3PPl_f/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py",
>>>>  
>>>> line 28, in \r\nImportError: No module named packaging.version\r\n", 
>>>> "msg": 
>>>> "MODULE FAILURE", "rc": 0}
>>>>
>>>> *Environment :*
>>>> Ansible version : ansible 2.4.2.0
>>>> python version = 2.7.5
>>>> Ansible controller machine : centos 7
>>>> ansible managed node : centos 7
>>>>
>>>>
>>>> *azure packages :*
>>>> python2-msrestazure-0.4.21-1.el7.noarch
>>>> azure-repo-svc-1.0-0.el7.centos.noarch
>>>> python2-azure-sdk-2.0.0-2.el7.noarch
>>>>
>>>>
>>>> *expected behavior :*
>>>> provision the VM without any issue
>>>>
>>>>
>>>> I am not getting what is the issue. my other playbooks are just working 
>>>> fine. do I need to install any other dependency OR module ??
>>>>
>>>>
>>>> please suggest.
>>>>
>>>>  
>>>>
>>>> Regards,
>>>>
>>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1560a792-635f-4384-8ee4-1d891abb5ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to