I just had a few weird attribute errors that were caused by having multiple 
installations of Ansible. I had a system install and I was trying to use a 
Github clone of Ansible.
 
You can use the following command to see where your system Ansible 
locations might be (thanks to Matt Martz):
$ python -c "import sys; print sys.path"

On Tuesday, March 1, 2016 at 3:33:22 PM UTC-6, hilali lui wrote:
>
> Hello,
>
>
> When I use this:
>
> - name: Install {{ install_name }} required tools
>   apt:  pkg={{ item }}
>         state=installed
>         update_cache=yes
>
>
> I found this error :
>
> failed: [192.168.8.123] => (item=[u'sudo', u'vim', u'tree', u'git', 
> u'gcc', u'iotop', u'htop', u'build-essential', u'xfonts-base', 
> u'xfonts-encodings', u'xfonts-75dpi', u'xfonts-utils', u'libfontenc1', 
> u'libffi-dev', u'libssl-dev', u'libevent-dev', u'libgeos-dev', 
> u'libldap2-dev', u'libsasl2-dev', u'libxfont1', u'libxml2', u'libxml2-dev', 
> u'libxslt1.1', u'libxslt1-dev', u'libxslt-dev', u'node-clean-css', 
> u'node-less']) => {"failed": true, "invocation": {"module_name": "apt"}, 
> "item": ["sudo", "vim", "tree", "git", "gcc", "iotop", "htop", 
> "build-essential", "xfonts-base", "xfonts-encodings", "xfonts-75dpi", 
> "xfonts-utils", "libfontenc1", "libffi-dev", "libssl-dev", "libevent-dev", 
> "libgeos-dev", "libldap2-dev", "libsasl2-dev", "libxfont1", "libxml2", 
> "libxml2-dev", "libxslt1.1", "libxslt1-dev", "libxslt-dev", 
> "node-clean-css", "node-less"], "module_stderr": "OpenSSH_6.6.1, OpenSSL 
> 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data 
> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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_forwards: request 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 = 20859\r\ndebug3: mux_client_request_session: session request 
> sent\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 192.168.8.123 
> closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  
> File \"/root/.ansible/tmp/ansible-tmp-1456851197.83-39434127468758/apt\", 
> line 2407, in <module>\r\n    main()\r\n  File 
> \"/root/.ansible/tmp/ansible-tmp-1456851197.83-39434127468758/apt\", line 
> 448, in main\r\n    p'list' object has no attribute 'split'\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/fbac81c1-ab04-492d-95e1-e4074f8acb3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to