# Buggy code
def upgrade(
    m,
    mode="yes",
    force=False,
    default_release=None,
    use_apt_get=False,
    dpkg_options=expand_dpkg_options(DPKG_OPTIONS),
    autoremove=None,
):
    if autoremove:
        autoremove = "--auto-remove"
    else:
        autoremove = ""

    if m.check_mode:
        check_arg = "--simulate"
    else:
        check_arg = ""

    apt_cmd = None
    prompt_regex = None
    if mode == "dist" or (mode == "full" and use_apt_get):
        # apt-get dist-upgrade
        apt_cmd = APT_GET_CMD
        upgrade_command = "dist-upgrade"
    elif mode == "full" and not use_apt_get:
        # aptitude full-upgrade
        apt_cmd = APTITUDE_CMD
        upgrade_command = "full-upgrade"
    else:
        if use_apt_get:
            apt_cmd = APT_GET_CMD
            upgrade_command = "upgrade --with-new-pkgs %s" % (autoremove)
        else:
            # aptitude safe-upgrade # mode=yes # default
            apt_cmd = APTITUDE_CMD
            upgrade_command = "safe-upgrade"
            prompt_regex = r"(^Do you want to ignore this warning and proceed anyway\?|^\*\*\*.*\[default=.*\])"

    if force:
        if apt_cmd == APT_GET_CMD:
            force_yes = "--force-yes"
        else:
            force_yes = "--assume-yes --allow-untrusted"
    else:
        force_yes = ""

    apt_cmd_path = m.get_bin_path(apt_cmd, required=True)

    cmd = "%s -y %s %s %s %s" % (
        apt_cmd_path,
        dpkg_options,
        force_yes,
        check_arg,
        upgrade_command,
    )

    if default_release:
        cmd += " -t '%s'" % (default_release,)

    rc, out, err = m.run_command(cmd, prompt_regex=prompt_regex)
    if m._diff:
        diff = parse_diff(out)
    else:
        diff = {}
    if rc:
        m.fail_json(
            msg="'%s %s' failed: %s" % (apt_cmd, upgrade_command, err),
            stdout=out,
            rc=rc,
        )
    if (apt_cmd == APT_GET_CMD and APT_GET_ZERO in out) or (
        apt_cmd == APTITUDE_CMD and APTITUDE_ZERO in out
    ):
        m.exit_json(changed=False, msg=out, stdout=out, stderr=err)
    m.exit_json(changed=True, msg=out, stdout=out, stderr=err, diff=diff)


# Traceback (nAttributeError)
acc@CODAAMOKSMON:~/common-update$ ansible-playbook -b -k -K ~/common-update/playbook.yml -i codaamoksdel, -vvvv
ansible-playbook 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/acc/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]
Using /etc/ansible/ansible.cfg as config file
SSH password:
SUDO password[defaults to SSH password]:
setting up inventory plugins
Parsed codaamoksdel, inventory source with host_list plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc

PLAYBOOK: playbook.yml *******************************************************************************************************************************************************************************************************************************************************
1 plays in /home/acc/common-update/playbook.yml

PLAY [all] *******************************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '/home/acc\n', '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\ndebug1: Control socket "/home/acc/.ansible/cp/f89e4f2a04" does not exist\r\ndebug2: ssh_connect: needpriv 0\r\ndebug1: Connecting to codaamoksdel [192.168.0.101] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: identity file /home/acc/.ssh/id_rsa type -1\r\ndebug1: identity file /home/acc/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /home/acc/.ssh/id_dsa type -1\r\ndebug1: identity file /home/acc/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /home/acc/.ssh/id_ecdsa type -1\r\ndebug1: identity file /home/acc/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /home/acc/.ssh/id_ed25519 type -1\r\ndebug1: identity file /home/acc/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.2\r\ndebug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug3: load_hostkeys: loading entries for host "codaamoksdel" from file "/home/acc/.ssh/known_hosts"\r\ndebug3: load_hostkeys: found key type ECDSA in file /home/acc/.ssh/known_hosts:9\r\ndebug3: load_hostkeys: loaded 1 keys\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-ed25519,ssh-rsa,ssh-dss\r\ndebug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: kex_parse_kexinit: zlib@openssh.com,zlib,none\r\ndebug2: kex_parse_kexinit: zlib@openssh.com,zlib,none\r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: first_kex_follows 0 \r\ndebug2: kex_parse_kexinit: reserved 0 \r\ndebug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1\r\ndebug2: kex_parse_kexinit: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: kex_parse_kexinit: none,zlib@openssh.com\r\ndebug2: kex_parse_kexinit: none,zlib@openssh.com\r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: first_kex_follows 0 \r\ndebug2: kex_parse_kexinit: reserved 0 \r\ndebug2: mac_setup: setup hmac-sha1-etm@openssh.com\r\ndebug1: kex: server->client aes128-ctr hmac-sha1-etm@openssh.com zlib@openssh.com\r\ndebug2: mac_setup: setup hmac-sha1-etm@openssh.com\r\ndebug1: kex: client->server aes128-ctr hmac-sha1-etm@openssh.com zlib@openssh.com\r\ndebug1: sending SSH2_MSG_KEX_ECDH_INIT\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug1: Server host key: ECDSA f8:94:10:80:de:20:68:5b:24:c4:a1:43:16:56:9c:07\r\ndebug3: load_hostkeys: loading entries for host "codaamoksdel" from file "/home/acc/.ssh/known_hosts"\r\ndebug3: load_hostkeys: found key type ECDSA in file /home/acc/.ssh/known_hosts:9\r\ndebug3: load_hostkeys: loaded 1 keys\r\ndebug3: load_hostkeys: loading entries for host "192.168.0.101" from file "/home/acc/.ssh/known_hosts"\r\ndebug3: load_hostkeys: found key type ECDSA in file /home/acc/.ssh/known_hosts:2\r\ndebug3: load_hostkeys: loaded 1 keys\r\ndebug1: Host \'codaamoksdel\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/acc/.ssh/known_hosts:9\r\ndebug1: ssh_ecdsa_verify: signature correct\r\ndebug2: kex_derive_keys\r\ndebug2: set_newkeys: mode 1\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug2: set_newkeys: mode 0\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug1: SSH2_MSG_SERVICE_REQUEST sent\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug2: key: /home/acc/.ssh/id_rsa ((nil)),\r\ndebug2: key: /home/acc/.ssh/id_dsa ((nil)),\r\ndebug2: key: /home/acc/.ssh/id_ecdsa ((nil)),\r\ndebug2: key: /home/acc/.ssh/id_ed25519 ((nil)),\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: keyboard-interactive,password\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Trying private key: /home/acc/.ssh/id_rsa\r\ndebug3: no such identity: /home/acc/.ssh/id_rsa: No such file or directory\r\ndebug1: Trying private key: /home/acc/.ssh/id_dsa\r\ndebug3: no such identity: /home/acc/.ssh/id_dsa: No such file or directory\r\ndebug1: Trying private key: /home/acc/.ssh/id_ecdsa\r\ndebug3: no such identity: /home/acc/.ssh/id_ecdsa: No such file or directory\r\ndebug1: Trying private key: /home/acc/.ssh/id_ed25519\r\ndebug3: no such identity: /home/acc/.ssh/id_ed25519: No such file or directory\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod_lookup password\r\ndebug3: remaining preferred: ,password\r\ndebug3: authmethod_is_enabled password\r\ndebug1: Next authentication method: password\r\ndebug3: packet_send2: adding 64 (len 54 padlen 10 extra_pad 64)\r\ndebug2: we sent a password packet, wait for reply\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (password).\r\nAuthenticated to codaamoksdel ([192.168.0.101]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /home/acc/.ansible/cp/f89e4f2a04.t1M9dfGt9A2YR1SX\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug1: channel 0: new [/home/acc/.ansible/cp/f89e4f2a04]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: packet_set_tos: set IP_TOS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 8128\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 5\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: process_mux_master_hello: channel 1 slave version 4\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_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: process_mux_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 8130\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 91\r\ndebug2: process_mux_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "xterm", cmd "/bin/sh -c \'echo ~ &amp;&amp; sleep 0\'", env 1\r\ndebug3: mm_receive_fd: recvmsg: Resource temporarily unavailable\r\ndebug3: mm_receive_fd: recvmsg: Resource temporarily unavailable\r\ndebug3: mm_receive_fd: recvmsg: Resource temporarily unavailable\r\ndebug3: process_mux_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: process_mux_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_GB.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug1: Sending command: /bin/sh -c \'echo ~ &amp;&amp; sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close_read\r\ndebug2: channel 2: input open -> closed\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close_write\r\ndebug2: channel 2: output drain -> closed\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: close_read\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n  #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close_write\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487 `" &amp;&amp; echo ansible-tmp-1510773060.87-27725154251487="` echo /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487 `" ) &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, 'ansible-tmp-1510773060.87-27725154251487=/home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487\n', '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 = 8130\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\n')
<codaamoksdel> PUT /tmp/tmpkr0dt3 TO /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py
<codaamoksdel> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 '[codaamoksdel]'
<codaamoksdel> (0, 'sftp> put /tmp/tmpkr0dt3 /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py\n', '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 = 8130\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/acc size 0\r\ndebug3: Looking up /tmp/tmpkr0dt3\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:32222\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 32222 bytes at 163840\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'chmod u+x /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/ /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '', '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 = 8130\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\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 -tt codaamoksdel '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=qorgvitejupsemvfpzbhljtzgjjyuhyt] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qorgvitejupsemvfpzbhljtzgjjyuhyt; /usr/bin/python /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py; rm -rf "/home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/" > /dev/null 2>&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '\r\nexc: \'DistributionFiles\' object has no attribute \'parse_distribution_file_Archlinux\'\r\n\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_product_serial": "5091-9210-7969-0187-2741-4583-44", "ansible_form_factor": "Desktop", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "root", "ansible_selinux_python_present": false, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDBTOedaRVWKaW+VcRTf4Km0Iv7ZsSzeIUWzJ5Yk2WH0NFayeSnwTZeScaeitkmu1UAVoqT11Gjb2Moyy7rG6vwBtgqGXxe2leA4v9OlQKNakzlmvbGDSv4fItM3seFVWfbAI3QTCTsdhutQ29cKFsVLfq+XjT1rDGFbz+CLsaxprJ4/Z8wPEzyunfaz5Y0LH84THVYF10NAGVO0MUeSdZdJ20Lz2LMUY7R8kH7akbYBBw+BZDs+AAbOHvjMSC+JRAqMY/+rX/PvXceqW3Pr9FZ3pxHK0UtIP2ycLWiEscmvIkZnicdurRLTBo9wEITpsMN9WBUPniAOp18TtvElOTv", "gather_subset": ["all"], "ansible_real_user_id": 0, "ansible_architecture": "x86_64", "ansible_local": {}, "ansible_distribution_version": "16.04", "ansible_domain": "", "ansible_distribution_file_path": "/etc/os-release", "ansible_user_shell": "/bin/bash", "ansible_date_time": {"weekday_number": "3", "iso8601_basic_short": "20171115T191101", "tz": "GMT", "weeknumber": "46", "hour": "19", "year": "2017", "minute": "11", "tz_offset": "+0000", "month": "11", "epoch": "1510773061", "iso8601_micro": "2017-11-15T19:11:01.633123Z", "weekday": "Wednesday", "time": "19:11:01", "date": "2017-11-15", "iso8601": "2017-11-15T19:11:01Z", "day": "15", "iso8601_basic": "20171115T191101633071", "second": "01"}, "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIMKYd3UXURNUJV73f6e3OVtl8ahdhSNmPhPtPczUn1cl", "ansible_processor_cores": 2, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "Debian", "ansible_env": {"USERNAME": "root", "LANG": "en_GB.UTF-8", "SUDO_GID": "1000", "SHELL": "/bin/bash", "LANGUAGE": "en_GB:en", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-qorgvitejupsemvfpzbhljtzgjjyuhyt; /usr/bin/python /home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/setup.py; rm -rf \\"/home/acc/.ansible/tmp/ansible-tmp-1510773060.87-27725154251487/\\" > /dev/null 2>&amp;1", "SUDO_UID": "1000", "TERM": "xterm", "MAIL": "/var/mail/root", "PWD": "/home/acc", "LOGNAME": "root", "USER": "root", "HOME": "/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin", "SUDO_USER": "acc"}, "ansible_effective_group_id": 0, "ansible_bios_version": "090006", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-4790T CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-4790T CPU @ 2.70GHz"], "ansible_virtualization_type": "VirtualPC", "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_nocache_copy": "off [fixed]", "udp_fragmentation_offload": "on", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 2015, "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFH4gHDe++xkJOsET81ZYMi/mhie0a0z4S8sCMwztuK+ji+bZFIyj+ZIsFFaXpxK2uoJrQKtKttsF3U/4ypMno4=", "ansible_device_links": {"masters": {"sda5": ["dm-0", "dm-1"]}, "labels": {}, "ids": {"sr0": ["ata-Virtual_CD"], "sda5": ["lvm-pv-uuid-K4saUX-rnAr-ZKHR-4qyY-TWu7-4e8q-3DhU0y", "scsi-36002248080c5fa0913ce5bb35fae74df-part5", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part5"], "sda2": ["scsi-36002248080c5fa0913ce5bb35fae74df-part2", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part2"], "sda": ["scsi-36002248080c5fa0913ce5bb35fae74df", "wwn-0x6002248080c5fa0913ce5bb35fae74df"], "sda1": ["scsi-36002248080c5fa0913ce5bb35fae74df-part1", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part1"], "dm-0": ["dm-name-CODAAMOKSDEL--vg-root", "dm-uuid-LVM-TEKn3j3dORimHGQk7DhPERbdBEpoy11uF2aRbrOE7aI3Cbmc0X9luTeKgZqOrOcy"], "dm-1": ["dm-name-CODAAMOKSDEL--vg-swap_1", "dm-uuid-LVM-TEKn3j3dORimHGQk7DhPERbdBEpoy11uU01H8FIXzCmLMO2UY3T7aCBZlzsnf3dG"]}, "uuids": {"sda1": ["f79a9512-9356-4f17-af2b-9e01ebe61206"], "dm-0": ["1d640d56-9835-46f6-8188-b9e1abd88fe7"], "dm-1": ["4d142974-60fc-4448-a238-96763561d995"]}}, "ansible_default_ipv4": {"macaddress": "", "network": "10.4.0.0", "mtu": 1500, "broadcast": "10.4.255.255", "alias": "tun0", "netmask": "255.255.0.0", "address": "10.4.10.241", "interface": "tun0", "type": "tunnel", "gateway": "10.4.0.1"}, "ansible_swapfree_mb": 139, "ansible_default_ipv6": {}, "ansible_distribution_release": "xenial", "ansible_system_vendor": "Microsoft Corporation", "ansible_apparmor": {"status": "enabled"}, "ansible_cmdline": {"BOOT_IMAGE": "/vmlinuz-4.4.0-66-generic", "ro": true, "root": "/dev/mapper/CODAAMOKSDEL--vg-root"}, "ansible_effective_user_id": 0, "ansible_user_gid": 0, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_product_version": "7.0", "ansible_os_family": "Debian", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "7B400B9B-B919-4347-8A2A-297328F2FC5E", "ansible_system": "Linux", "ansible_pkg_mgr": "apt", "ansible_memfree_mb": 88, "ansible_devices": {"ram14": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram15": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram12": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram13": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram10": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram11": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram8": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram9": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "ram3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "131072", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": [], "size": "64.00 MB"}, "fd0": {"scheduler_mode": "deadline", "rotational": "1", "vendor": null, "sectors": "8", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "1", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "4.00 KB"}, "sr0": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "Msft", "sectors": "2097151", "links": {"masters": [], "labels": [], "ids": ["ata-Virtual_CD"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)", "sectorsize": "512", "removable": "1", "support_discard": "0", "model": "Virtual CD/ROM", "partitions": {}, "holders": [], "size": "1024.00 MB"}, "dm-0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "39886848", "links": {"masters": [], "labels": [], "ids": ["dm-name-CODAAMOKSDEL--vg-root", "dm-uuid-LVM-TEKn3j3dORimHGQk7DhPERbdBEpoy11uF2aRbrOE7aI3Cbmc0X9luTeKgZqOrOcy"], "uuids": ["1d640d56-9835-46f6-8188-b9e1abd88fe7"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "33554432", "model": null, "partitions": {}, "holders": [], "size": "19.02 GB"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "1048576", "links": {"masters": [], "labels": [], "ids": ["dm-name-CODAAMOKSDEL--vg-swap_1", "dm-uuid-LVM-TEKn3j3dORimHGQk7DhPERbdBEpoy11uU01H8FIXzCmLMO2UY3T7aCBZlzsnf3dG"], "uuids": ["4d142974-60fc-4448-a238-96763561d995"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "33554432", "model": null, "partitions": {}, "holders": [], "size": "512.00 MB"}, "sda": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "Msft", "sectors": "41943040", "links": {"masters": [], "labels": [], "ids": ["scsi-36002248080c5fa0913ce5bb35fae74df", "wwn-0x6002248080c5fa0913ce5bb35fae74df"], "uuids": []}, "partitions": {"sda5": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0", "dm-1"], "labels": [], "ids": ["lvm-pv-uuid-K4saUX-rnAr-ZKHR-4qyY-TWu7-4e8q-3DhU0y", "scsi-36002248080c5fa0913ce5bb35fae74df-part5", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part5"], "uuids": []}, "sectors": "40939520", "start": "1001472", "holders": ["CODAAMOKSDEL--vg-root", "CODAAMOKSDEL--vg-swap_1"], "size": "19.52 GB"}, "sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": ["scsi-36002248080c5fa0913ce5bb35fae74df-part2", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part2"], "uuids": []}, "sectors": "2", "start": "1001470", "holders": [], "size": "1.00 KB"}, "sda1": {"sectorsize": 512, "uuid": "f79a9512-9356-4f17-af2b-9e01ebe61206", "links": {"masters": [], "labels": [], "ids": ["scsi-36002248080c5fa0913ce5bb35fae74df-part1", "wwn-0x6002248080c5fa0913ce5bb35fae74df-part1"], "uuids": ["f79a9512-9356-4f17-af2b-9e01ebe61206"]}, "sectors": "997376", "start": "2048", "holders": [], "size": "487.00 MB"}}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "33554432", "model": "Virtual Disk", "wwn": "0x6002248080c5fa0913ce5bb35fae74df", "holders": [], "size": "20.00 GB"}, "loop3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}}, "ansible_user_uid": 0, "ansible_lvm": {"pvs": {"/dev/sda5": {"free_g": "0", "size_g": "19.52", "vg": "CODAAMOKSDEL-vg"}}, "lvs": {"swap_1": {"size_g": "0.50", "vg": "CODAAMOKSDEL-vg"}, "root": {"size_g": "19.02", "vg": "CODAAMOKSDEL-vg"}}, "vgs": {"CODAAMOKSDEL-vg": {"free_g": "0", "size_g": "19.52", "num_lvs": "2", "num_pvs": "1"}}}, "ansible_distribution": "Ubuntu", "ansible_user_dir": "/root", "ansible_dns": {"nameservers": ["192.168.0.1", "8.8.8.8"]}, "ansible_distribution_major_version": "16", "module_setup": true, "ansible_processor_count": 1, "ansible_hostname": "CODAAMOKSDEL", "ansible_processor_vcpus": 2, "ansible_swaptotal_mb": 511, "ansible_lsb": {"release": "16.04", "major_release": "16", "codename": "xenial", "id": "Ubuntu", "description": "Ubuntu 16.04.3 LTS"}, "ansible_real_group_id": 0, "ansible_bios_date": "04/28/2016", "ansible_all_ipv6_addresses": ["fe80::215:5dff:fe00:6910", "fe80::215:5dff:fe00:691b"], "ansible_tun0": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "off [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [requested on]", "tx_tcp6_segmentation": "off [requested on]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "off", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "off [fixed]", "tx_tcp_segmentation": "off [requested on]", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "off", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "on", "tx_nocache_copy": "off", "udp_fragmentation_offload": "off [requested on]", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "off [requested on]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "tunnel", "hw_timestamp_filters": [], "mtu": 1500, "device": "tun0", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "10.4.255.255", "netmask": "255.255.0.0", "network": "10.4.0.0", "address": "10.4.10.241"}, "active": true, "speed": 10}, "ansible_interfaces": ["lo", "tun0", "eth1", "eth0"], "ansible_uptime_seconds": 642087, "ansible_machine_id": "8ba55ea0ab31ba7fde79677858cafe46", "ansible_kernel": "4.4.0-66-generic", "ansible_memory_mb": {"real": {"total": 2015, "used": 1927, "free": 88}, "swap": {"cached": 6, "total": 511, "free": 139, "used": 372}, "nocache": {"used": 1379, "free": 636}}, "ansible_user_gecos": "root", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 12, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 12, "final", 0]}, "ansible_processor_threads_per_core": 1, "ansible_fqdn": "CODAAMOKSDEL", "ansible_mounts": [{"block_used": 1402746, "uuid": "1d640d56-9835-46f6-8188-b9e1abd88fe7", "size_total": 19966849024, "block_total": 4874719, "mount": "/", "block_available": 3471973, "size_available": 14221201408, "fstype": "ext4", "inode_total": 1248480, "options": "rw,relatime,errors=remount-ro,data=ordered", "device": "/dev/mapper/CODAAMOKSDEL--vg-root", "inode_used": 220791, "block_size": 4096, "inode_available": 1027689}, {"block_used": 40877250, "uuid": "N/A", "size_total": 503939694592, "block_total": 123032152, "mount": "/mnt/CODAAMOKSFS/holding", "block_available": 82154902, "size_available": 336506478592, "fstype": "cifs", "inode_total": 31260672, "options": "rw,relatime,vers=1.0,cache=strict,username=acc,domain=CODAAMOKSFS,uid=0,noforceuid,gid=0,noforcegid,addr=172.16.0.5,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1", "device": "//172.16.0.5/holding-area", "inode_used": 1502, "block_size": 4096, "inode_available": 31259170}, {"block_used": 734474820, "uuid": "N/A", "size_total": 3436910211072, "block_total": 839089407, "mount": "/mnt/CODAAMOKSFS/stnerrot", "block_available": 104614587, "size_available": 428501348352, "fstype": "cifs", "inode_total": 418523884, "options": "rw,relatime,vers=1.0,cache=strict,username=acc,domain=CODAAMOKSFS,uid=1000,forceuid,gid=1000,forcegid,addr=172.16.0.5,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1", "device": "//172.16.0.5/stnerrot", "inode_used": 7371, "block_size": 4096, "inode_available": 418516513}, {"block_used": 734474820, "uuid": "N/A", "size_total": 3436910211072, "block_total": 839089407, "mount": "/??/D:/stnerrot", "block_available": 104614587, "size_available": 428501348352, "fstype": "cifs", "inode_total": 418523884, "options": "rw,relatime,vers=1.0,cache=strict,username=acc,domain=CODAAMOKSFS,uid=1000,forceuid,gid=1000,forcegid,addr=172.16.0.5,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1", "device": "//172.16.0.5/stnerrot", "inode_used": 7371, "block_size": 4096, "inode_available": 418516513}], "ansible_eth0": {"macaddress": "00:15:5d:00:69:10", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off [fixed]", "highdma": "off [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "on [fixed]", "tx_nocache_copy": "off", "udp_fragmentation_offload": "off [fixed]", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "ether", "pciid": "a0c063a5-487c-48b8-a12c-d253148afd15", "module": "hv_netvsc", "mtu": 1500, "device": "eth0", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "192.168.0.255", "netmask": "255.255.255.0", "network": "192.168.0.0", "address": "192.168.0.101"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::215:5dff:fe00:6910"}], "active": true, "speed": 100, "hw_timestamp_filters": []}, "ansible_eth1": {"macaddress": "00:15:5d:00:69:1b", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off [fixed]", "highdma": "off [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_vlan_offload": "on [fixed]", "tx_nocache_copy": "off", "udp_fragmentation_offload": "off [fixed]", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "ether", "pciid": "1a3fdba7-b6ae-4578-9108-3f3276ad96fc", "module": "hv_netvsc", "mtu": 1500, "device": "eth1", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "172.16.0.255", "netmask": "255.255.255.0", "network": "172.16.0.0", "address": "172.16.0.2"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::215:5dff:fe00:691b"}], "active": true, "speed": 10000, "hw_timestamp_filters": []}, "ansible_product_name": "Virtual Machine", "ansible_machine": "x86_64", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "37+ep"], "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJTtJjViUA3u8TEkowQ5CvV6oMdY3bs2i1xXdpOv5Swf1aTuwXmco41NEFG/ShQjF++u4pL2wiYL7j+4ujcrpyRjXHa8T/Mzsonb2nP+wnPY4F/JZ6+fuSdDEUGNMeFyTIL72YWNHr9Z6/daJlOH3cgPuMXDjIR91R5gnYOHtNNzAAAAFQCyMa4AZxpY+EeCQ6Cw0twLly6mLwAAAIBTQ9fJqPwIeSxM7sod/ebvNkSHDRBkVPgHV4CqVqzVODO6PqMvMLdnfllnJRxtRlIZ1Qqm7/yyJrSrNPiWOYAB9c//xd3H5CNmdt3zZKbgpBK9tU/4zQLQ3YlpTuUcCfC8ic6eiApkt4vQ5ln0IAAhOSl8GJqkve6P7Sxeiay6VwAAAIA0Ilyiib5SlXtyNWrRILm/q3/orfGyEcHnQOkpqPAZj04wXUmjNAgN10viiNqBkVlbR3NHq46HUEAAYQilb/7Slfl/5OwXVtRfngCPul4R55dsXGBI3ELgkkADkHgmIntcPuZWNRxodembQ7oIa4a121wVwSaBd5BqlmL0D2/y9w==", "ansible_nodename": "CODAAMOKSDEL", "ansible_all_ipv4_addresses": ["192.168.0.101", "172.16.0.2", "10.4.10.241"], "ansible_python_version": "2.7.12"}}\r\n', '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 = 8130\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 codaamoksdel closed.\r\n')
ok: [codaamoksdel]
META: ran handlers

TASK [common : Updating repositories] ****************************************************************************************************************************************************************************************************************************************
task path: /home/acc/common-update/roles/common/tasks/main.yml:1
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '/home/acc\n', '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 = 8130\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\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701 `" &amp;&amp; echo ansible-tmp-1510773062.59-171516365710701="` echo /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701 `" ) &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, 'ansible-tmp-1510773062.59-171516365710701=/home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701\n', '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 = 8130\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\n')
<codaamoksdel> PUT /tmp/tmp_GsiZf TO /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/apt.py
<codaamoksdel> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 '[codaamoksdel]'
<codaamoksdel> (0, 'sftp> put /tmp/tmp_GsiZf /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/apt.py\n', '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 = 8130\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/acc size 0\r\ndebug3: Looking up /tmp/tmp_GsiZf\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/apt.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:29902\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 29902 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'chmod u+x /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/ /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/apt.py &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '', '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 = 8130\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\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 -tt codaamoksdel '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=osvuetaixhqlpezkjjyzkrutwadxivzw] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-osvuetaixhqlpezkjjyzkrutwadxivzw; /usr/bin/python /home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/apt.py; rm -rf "/home/acc/.ansible/tmp/ansible-tmp-1510773062.59-171516365710701/" > /dev/null 2>&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '\r\n\r\n{"invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "upgrade": null, "force": false, "force_apt_get": false, "install_recommends": null, "package": null, "autoclean": false, "purge": false, "allow_unauthenticated": false, "state": "present", "autoremove": false, "update_cache": true, "default_release": null, "only_upgrade": false, "deb": null, "cache_valid_time": 0}}, "cache_updated": true, "changed": true, "cache_update_time": 1510773062}\r\n', '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 = 8130\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 codaamoksdel closed.\r\n')
changed: [codaamoksdel] => {
"cache_update_time": 1510773062,
"cache_updated": true,
"changed": true,
"failed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"force_apt_get": false,
"install_recommends": null,
"only_upgrade": false,
"package": null,
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
}
}
}

TASK [common : Updating packages] ********************************************************************************************************************************************************************************************************************************************
task path: /home/acc/common-update/roles/common/tasks/main.yml:5
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '/home/acc\n', '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 = 8130\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\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016 `" &amp;&amp; echo ansible-tmp-1510773063.88-37316619483016="` echo /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016 `" ) &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, 'ansible-tmp-1510773063.88-37316619483016=/home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016\n', '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 = 8130\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\n')
<codaamoksdel> PUT /tmp/tmp5PSdTz TO /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/apt.py
<codaamoksdel> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 '[codaamoksdel]'
<codaamoksdel> (0, 'sftp> put /tmp/tmp5PSdTz /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/apt.py\n', '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 = 8130\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/acc size 0\r\ndebug3: Looking up /tmp/tmp5PSdTz\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/apt.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:29912\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 29912 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 codaamoksdel '/bin/sh -c '"'"'chmod u+x /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/ /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/apt.py &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '', '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 = 8130\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\n')
<codaamoksdel> ESTABLISH SSH CONNECTION FOR USER: None
<codaamoksdel> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/home/acc/.ansible/cp/f89e4f2a04 -tt codaamoksdel '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=wgpgjmoshfzgobacctnnixashqsyttgn] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-wgpgjmoshfzgobacctnnixashqsyttgn; /usr/bin/python /home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/apt.py; rm -rf "/home/acc/.ansible/tmp/ansible-tmp-1510773063.88-37316619483016/" > /dev/null 2>&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
<codaamoksdel> (0, '\r\nTraceback (most recent call last):\r\n  File "/tmp/ansible_kCbZyG/ansible_module_apt.py", line 1053, in <module>\r\n    main()\r\n  File "/tmp/ansible_kCbZyG/ansible_module_apt.py", line 996, in main\r\n    upgrade(module, \'yes\', force_yes, p[\'default_release\'], use_apt_get, dpkg_options)\r\n  File "/tmp/ansible_kCbZyG/ansible_module_apt.py", line 757, in upgrade\r\n    apt_cmd_path = m.get_bin_path(apt_cmd, required=True)\r\n  File "/tmp/ansible_kCbZyG/ansible_modlib.zip/ansible/module_utils/basic.py", line 2181, in get_bin_path\r\n  File "/usr/lib/python2.7/posixpath.py", line 68, in join\r\n    if b.startswith(\'/\'):\r\nAttributeError: \'NoneType\' object has no attribute \'startswith\'\r\n', '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 = 8130\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 codaamoksdel closed.\r\n')
fatal: [codaamoksdel]: FAILED! => {
"changed": false,
"failed": true,
"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 = 8130\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 codaamoksdel closed.\r\n",
"module_stdout": "\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_kCbZyG/ansible_module_apt.py\", line 1053, in <module>\r\n    main()\r\n  File \"/tmp/ansible_kCbZyG/ansible_module_apt.py\", line 996, in main\r\n    upgrade(module, 'yes', force_yes, p['default_release'], use_apt_get, dpkg_options)\r\n  File \"/tmp/ansible_kCbZyG/ansible_module_apt.py\", line 757, in upgrade\r\n    apt_cmd_path = m.get_bin_path(apt_cmd, required=True)\r\n  File \"/tmp/ansible_kCbZyG/ansible_modlib.zip/ansible/module_utils/basic.py\", line 2181, in get_bin_path\r\n  File \"/usr/lib/python2.7/posixpath.py\", line 68, in join\r\n    if b.startswith('/'):\r\nAttributeError: 'NoneType' object has no attribute 'startswith'\r\n",
"msg": "MODULE FAILURE",
"rc": 0
}
to retry, use: --limit @/home/acc/common-update/playbook.retry

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************
codaamoksdel               : ok=2    changed=1    unreachable=0    failed=1

# Fixed code
def upgrade(
    m,
    mode="yes",
    force=False,
    default_release=None,
    use_apt_get=False,
    dpkg_options=expand_dpkg_options(DPKG_OPTIONS),
    autoremove=None,
):
    if autoremove:
        autoremove = "--auto-remove"
    else:
        autoremove = ""

    if m.check_mode:
        check_arg = "--simulate"
    else:
        check_arg = ""

    apt_cmd = None
    prompt_regex = None
    if mode == "dist" or (mode == "full" and use_apt_get):
        # apt-get dist-upgrade
        apt_cmd = APT_GET_CMD
        upgrade_command = "dist-upgrade"
    elif mode == "full" and not use_apt_get:
        # aptitude full-upgrade
        apt_cmd = APTITUDE_CMD
        upgrade_command = "full-upgrade"
    else:
        if use_apt_get:
            apt_cmd = APT_GET_CMD
            upgrade_command = "upgrade --with-new-pkgs %s" % (autoremove)
        else:
            # aptitude safe-upgrade # mode=yes # default
            apt_cmd = APTITUDE_CMD
            upgrade_command = "safe-upgrade"
            prompt_regex = r"(^Do you want to ignore this warning and proceed anyway\?|^\*\*\*.*\[default=.*\])"

    if force:
        if apt_cmd == APT_GET_CMD:
            force_yes = "--force-yes"
        else:
            force_yes = "--assume-yes --allow-untrusted"
    else:
        force_yes = ""

    if apt_cmd is None:
        if use_apt_get:
            apt_cmd = APT_GET_CMD
        else:
            m.fail_json(
                msg="Unable to find APTITUDE in path. Please make sure "
                "to have APTITUDE in path or use 'force_apt_get=True'"
            )
    apt_cmd_path = m.get_bin_path(apt_cmd, required=True)

    cmd = "%s -y %s %s %s %s" % (
        apt_cmd_path,
        dpkg_options,
        force_yes,
        check_arg,
        upgrade_command,
    )

    if default_release:
        cmd += " -t '%s'" % (default_release,)

    rc, out, err = m.run_command(cmd, prompt_regex=prompt_regex)
    if m._diff:
        diff = parse_diff(out)
    else:
        diff = {}
    if rc:
        m.fail_json(
            msg="'%s %s' failed: %s" % (apt_cmd, upgrade_command, err),
            stdout=out,
            rc=rc,
        )
    if (apt_cmd == APT_GET_CMD and APT_GET_ZERO in out) or (
        apt_cmd == APTITUDE_CMD and APTITUDE_ZERO in out
    ):
        m.exit_json(changed=False, msg=out, stdout=out, stderr=err)
    m.exit_json(changed=True, msg=out, stdout=out, stderr=err, diff=diff)