Same issue for me also, Could any one help us.
Mahi.
On Thursday, 26 May 2016 21:54:12 UTC+5:30, Huan He wrote:
>
> Hi,
>
> I did the cmd "ansible esxi -u root -m ping -vvvv" and got "ImportError:
> No module named grp". see full msg below. What I understand is that the
> ESXi 5.5 has python 2.6.8 and it may not have the full python standard pkgs
> from my googling. I wonder if there is any workarounds to make it working?
>
> Thanks,
> Huan
>
>
> Loaded callback minimal of type stdout, v2.0
>
> <20.200.30.151> ESTABLISH SSH CONNECTION FOR USER: root
>
> <20.200.30.151> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o
> ControlPersist=60s -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o
> ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r -tt 20.200.30.151
> '/bin/sh -c '"'"'mkdir -p "` echo
> $HOME/.ansible/tmp/ansible-tmp-1464223343.0-27880096828872 `" && echo "`
> echo $HOME/.ansible/tmp/ansible-tmp-1464223343.0-27880096828872 `"'"'"''
>
> <20.200.30.151> PUT /tmp/tmpJxH4sx TO
> //.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping
>
> <20.200.30.151> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o
> ControlPersist=60s -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o
> ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r '[20.200.30.151]'
>
> <20.200.30.151> ESTABLISH SSH CONNECTION FOR USER: root
>
> <20.200.30.151> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o
> ControlPersist=60s -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o
> ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r -tt 20.200.30.151
> '/bin/sh -c '"'"'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
> LC_MESSAGES=en_US.UTF-8 /usr/bin/python
> //.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping; rm -rf
> "//.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/" > /dev/null
> 2>&1'"'"''
>
> 20.200.30.151 | FAILED! => {
>
> "changed": false,
>
> "failed": true,
>
> "invocation": {
>
> "module_name": "ping"
>
> },
>
> "module_stderr": "OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb
> 2013\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1:
> Applying options for *\r\ndebug1: auto-mux: Trying existing
> master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2:
> mux_client_hello_exchange: master version 4\r\ndebug3:
> mux_client_request_forwards: requesting forwardings: 0 local, 0
> remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3:
> mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive:
> done pid = 8846\r\ndebug3: mux_client_request_session: session request
> sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug1:
> mux_client_request_session: master session id: 2\r\ndebug3:
> mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received
> exit status from master 0\r\nShared connection to 20.200.30.151
> closed.\r\n",
>
> "module_stdout": "Traceback (most recent call last):\r\n File
> \"//.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping\", line 123,
> in <module>\r\n import grp\r\nImportError: No module named grp\r\n",
>
> "msg": "MODULE FAILURE",
>
> "parsed": false
>
> }
>
--
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/ef14b697-da97-4b4c-81fd-de550ebcecae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.