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 \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}