{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/18555","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/18555/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/18555/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/18555/events","html_url":"https://github.com/ansible/ansible/issues/18555","id":190439644,"node_id":"MDU6SXNzdWUxOTA0Mzk2NDQ=","number":18555,"title":"Fix ansiballz use of Base64 for Z/os (EBCDIC encoding)","user":{"login":"mtkunkel","id":19537766,"node_id":"MDQ6VXNlcjE5NTM3NzY2","avatar_url":"https://avatars1.githubusercontent.com/u/19537766?v=4","gravatar_id":"","url":"https://api.github.com/users/mtkunkel","html_url":"https://github.com/mtkunkel","followers_url":"https://api.github.com/users/mtkunkel/followers","following_url":"https://api.github.com/users/mtkunkel/following{/other_user}","gists_url":"https://api.github.com/users/mtkunkel/gists{/gist_id}","starred_url":"https://api.github.com/users/mtkunkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtkunkel/subscriptions","organizations_url":"https://api.github.com/users/mtkunkel/orgs","repos_url":"https://api.github.com/users/mtkunkel/repos","events_url":"https://api.github.com/users/mtkunkel/events{/privacy}","received_events_url":"https://api.github.com/users/mtkunkel/received_events","type":"User","site_admin":false},"labels":[{"id":437720635,"node_id":"MDU6TGFiZWw0Mzc3MjA2MzU=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false},{"id":942378949,"node_id":"MDU6TGFiZWw5NDIzNzg5NDk=","url":"https://api.github.com/repos/ansible/ansible/labels/traceback","name":"traceback","color":"ededed","default":false},{"id":486238465,"node_id":"MDU6TGFiZWw0ODYyMzg0NjU=","url":"https://api.github.com/repos/ansible/ansible/labels/waiting_on_contributor","name":"waiting_on_contributor","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-18T22:42:47Z","updated_at":"2018-11-19T17:12:16Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nPlease do not report issues/requests related to Ansible modules here !!\r\n\r\nReport them to the appropriate modules-core or modules-extras project:\r\n  - https://github.com/ansible/ansible-modules-core/issues\r\n  - https://github.com/ansible/ansible-modules-extras/issues\r\n\r\nAlso verify first that your issue/request is not already reported in GitHub\r\n-->\r\n\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/task/feature -->\r\nansiballz compression / wrapper\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.2.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nFrom RHEL7 to Z/os 2.1 aka   OS/390   (realize this is unsupported, attempting to make this work across an enterprise environment)\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nAnsiballz compression places the compressed file a single string, it appears we're hitting a magic number limit on the mainframe of 64336.   The zipped string transmits correctly but is truncated at 64336 and zipfile.py never sees the end of file marker.   I'm able to extract the module on linux, ftp to the mainframe and run the module.\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\nRun any module from Linux to Z/os.\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n---\r\n- hosts: mainframe\r\n  gather_facts: no\r\n  remote_user: redacted\r\n\r\n  tasks:\r\n  - setup:\r\n    environment:\r\n      LANG: C\r\n      LC_ALL: C\r\n      LC_MESSAGES: C\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n{\"invocation\": {\"module_args\": {\"filter\": \"*\", \"gather_subset\": [\"all\"], \"fact_path\": \"/etc/ansible/facts.d\"}}, \"ansible_facts\": {\"module_setup\": true, \"ansible_dns\": {}, \"ansible_user_gid\": xxxxxxxxxxxxx, \"ansible_user_uid\": xxxxxxxxxxx, \"ansible_selinux\": false, \"ansible_userspace_bits\": \"32\", \"ansible_distribution\": \"NA\", \"ansible_system\": \"OS/390\", \"ansible_user_id\": \"redacted\", \"ansible_architecture\": \"2964\", \"ansible_os_family\": \"NA\", \"ansible_user_shell\": \"/bin/sh\", \"ansible_env\": {\"LIBPATH\": \"/lib:/usr/lib:/usr/lpp/netview/lib:.\", \"_CC_CLIB_PREFIX\": \"SYS1.CCPP\", \"_CC_PLIB_PREFIX\": \"SYS1.LE\", \"TERM\": \"xterm\", \"SHELL\": \"/bin/sh\", \"EDITOR\": \"ed\", \"_C89_LIBDIRS\": \"/lib /usr/lib\", \"TZ\": \"CST6CDT\", \"_CXX_LIBDIRS\": \"/lib /usr/lib\", \"USER\": \"redacted\", \"_CXX_INCDIRS\": \"/usr/include /usr/lpp/ioclib/include\", \"_BPXK_AUTOCVT\": \"ON\", \"_CC_SLIB_PREFIX\": \"SYS1\", \"TMPDIR\": \"/tmp\", \"_CC_WORK_UNIT\": \"3390\", \"_CC_INCDIRS\": \"/usr/include /usr/lpp/ioclib/include\", \"_C89_PLIB_PREFIX\": \"SYS1.LE\", \"_CXX_WORK_UNIT\": \"3390\", \"SSH2_CLIENT_HOSTKEY_ALG\": \"ssh-rsa\", \"_C89_SLIB_PREFIX\": \"SYS1\", \"SSH_SFTP_ADVISOR_RECORD_TRUNCATE\": \"yes\", \"SSH2_CLIENT_VERSION\": \"SSH-2.0-OpenSSH_6.6.1\", \"SSH_SFT_ADVISOR_RECORD_TRUNCATE\": \"yes\", \"LANG\": \"C\", \"LD_LIBRARY_PATH\": \"/usr/lpp/netview/bin\", \"DBRMLIB\": \"SYS1.WIIR.SASNDBRM\", \"HOME\": \"/redacted\", \"SSH2_CLIENT_LOGIN_METHOD\": \"publickey\", \"PATH\": \"/bin:/usr/lpp/netview/bin:/usr/local/bin:/usr/lpp/java/alias/bin:/usr/lpp/wiir/alias/bin:.:/redacted:\", \"PS1\": \"$LOGNAME:$PWD: >\", \"SSH2_CLIENT_CIPHER\": \"aes128-cbc\", \"SSH2_CLIENT_COMPRESSION\": \"none\", \"SSH2_SFTP_LOG_FACILITY\": \"-1\", \"SSH_SFTP_RECORD_TRUNCATE\": \"yes\", \"_CXX_CLIB_PREFIX\": \"SYS1.CCPP\", \"SYSPROC\": \"SYS1.DB2.SDSNCLST\", \"_C89_INCDIRS\": \"/usr/include /usr/lpp/ioclib/include\", \"LOGNAME\": \"redacted\", \"_CC_LIBDIRS\": \"/lib /usr/lib\", \"_C89_CLIB_PREFIX\": \"SYS1.CCPP\", \"SSH2_CLIENT\": \"redacted\", \"_C89_WORK_UNIT\": \"3390\", \"_CXX_PLIB_PREFIX\": \"SYS1.LE\", \"_CEE_RUNOPTS\": \"FILETAG(AUTOCVT,NOAUTOTAG),TRAP(ON)\", \"_\": \"./setup\", \"MAIL\": \"/usr/mail/redacted\", \"MANPATH\": \"/usr/man/%L:/usr/lpp/netview/man/%L:/usr/lpp/ssh2/man/%L\", \"NLSPATH\": \"/usr/lib/nls/msg/%L/%N:/usr/lpp/wiir/alias/msg/En_US/db2asn.cat\", \"STEPLIB\": \"none\", \"_CXX_SLIB_PREFIX\": \"SYS1\"}, \"ansible_python_version\": \"2.7.6\", \"ansible_distribution_version\": \"NA\", \"ansible_date_time\": {\"tz\": \"CST\", \"weekday_number\": \"5\", \"minute\": \"34\", \"second\": \"34\", \"epoch\": \"1479508474\", \"weekday\": \"Friday\", \"month\": \"11\", \"day\": \"18\", \"date\": \"2016-11-18\", \"weeknumber\": \"46\", \"tz_offset\": \"-0600\", \"iso8601\": \"2016-11-18T22:34:34Z\", \"iso8601_basic_short\": \"20161118T163434\", \"hour\": \"16\", \"year\": \"2016\", \"iso8601_basic\": \"20161118T163434911760\", \"time\": \"16:34:34\", \"iso8601_micro\": \"2016-11-18T22:34:34.911905Z\"}, \"ansible_service_mgr\": \"service\", \"ansible_machine\": \"2964\", \"ansible_user_dir\": \"/u/redacted\", \"ansible_python\": {\"executable\": \"/usr/local/python/bin/python\", \"version_info\": [2, 7, 6, \"final\", 0], \"version\": {\"major\": 2, \"minor\": 7, \"serial\": 0, \"micro\": 6, \"releaselevel\": \"final\"}, \"type\": \"CPython\", \"has_sslcontext\": false}, \"ansible_pkg_mgr\": \"unknown\", \"ansible_domain\": \"\", \"ansible_hostname\": \"\", \"ansible_kernel\": \"24.00\", \"ansible_user_gecos\": \"\", \"ansible_fqdn\": \"VLINKT2\", \"ansible_gather_subset\": [\"virtual\", \"hardware\", \"network\"], \"ansible_nodename\": \"\", \"ansible_fips\": false, \"ansible_distribution_major_version\": \"NA\", \"ansible_distribution_release\": \"NA\"}, \"_ansible_verbose_override\": true, \"changed\": false}\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nansible-playbook system_z.yml -i demo_inventory -vvvv\r\nUsing /etc/ansible/ansible.cfg as config file\r\nLoaded callback default of type stdout, v2.0\r\n\r\nPLAYBOOK: system_z.yml *********************************************************\r\n1 plays in system_z.yml\r\n\r\nPLAY [mainframe] ***************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\ntask path: /u/ansible/demo-day/system_z.yml:7\r\n<> ESTABLISH SSH CONNECTION FOR USER: \r\n<> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User= -o ConnectTimeout=500  '/bin/sh -c '\"'\"'( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1479508623.33-83022043867538 `\" && echo ansible-tmp-1479508623.33-83022043867538=\"` echo $HOME/.ansible/tmp/ansible-tmp-1479508623.33-83022043867538 `\" ) && sleep 0'\"'\"''\r\n<> PUT /tmp/tmpgfHXQE TO /u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/setup\r\n<> SSH: EXEC sftp -b - -C -vvv -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User= -o ConnectTimeout=500 '[]'\r\n<> ESTABLISH SSH CONNECTION FOR USER: \r\n<> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User= -o ConnectTimeout=500  '/bin/sh -c '\"'\"'chmod u+x /u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/ /u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/setup && sleep 0'\"'\"''\r\n<> ESTABLISH SSH CONNECTION FOR USER: \r\n<> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User= -o ConnectTimeout=500 -tt  '/bin/sh -c '\"'\"'LANG=C LC_MESSAGES=C LC_ALL=C /usr/local/python/bin/python /u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/setup; rm -rf \"/u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/\" > /dev/null 2>&1 && sleep 0'\"'\"''\r\ns/tal: []: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_name\": \"setup\"}, \"module_stderr\": \"OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\\r\\ndebug1: Reading configuration data /etc/ssh/ssh_config\\r\\ndebug1: /etc/ssh/ssh_config line 56: Applying options for *\\r\\ndebug2: ssh_connect: needpriv 0\\r\\ndebug1: Connecting to  [] port 22.\\r\\ndebug2: fd 3 setting O_NONBLOCK\\r\\ndebug1: fd 3 clearing O_NONBLOCK\\r\\ndebug1: Connection established.\\r\\ndebug3: timeout: 500000 ms remain after connect\\r\\ndebug3: Incorrect RSA1 identifier\\r\\ndebug3: Could not load \\\"/u/users/ansible/.ssh/id_rsa\\\" as a RSA1 public key\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_rsa type 1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_rsa-cert type -1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_dsa type -1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_dsa-cert type -1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_ecdsa type -1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_ecdsa-cert type -1\\r\\ndebug1: identity file /u/users/ansible/.ssh/id_ed25519 type -1\\r\\ndebug1: identity file /u/users/ansible/.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.1\\r\\ndebug1: Remote protocol version 2.0, remote software version 4.3.645.1 SSH Secure Shell\\r\\ndebug1: no match: 4.3.645.1 SSH Secure Shell\\r\\ndebug2: fd 3 setting O_NONBLOCK\\r\\ndebug3: load_hostkeys: loading entries for host \\\"\\\" from file \\\"/dev/null\\\"\\r\\ndebug3: load_hostkeys: loaded 0 keys\\r\\ndebug1: SSH2_MSG_KEXINIT sent\\r\\ndebug3: Received SSH2_MSG_IGNORE\\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,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,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,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: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha256@ssh.com\\r\\ndebug2: kex_parse_kexinit: ssh-rsa,ssh-rsa-sha256@ssh.com\\r\\ndebug2: kex_parse_kexinit: aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc\\r\\ndebug2: kex_parse_kexinit: aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc\\r\\ndebug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-sha256-2@ssh.com,hmac-sha224@ssh.com,hmac-sha256@ssh.com,hmac-sha384@ssh.com,hmac-sha512@ssh.com\\r\\ndebug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-sha256-2@ssh.com,hmac-sha224@ssh.com,hmac-sha256@ssh.com,hmac-sha384@ssh.com,hmac-sha512@ssh.com\\r\\ndebug2: kex_parse_kexinit: none,zlib\\r\\ndebug2: kex_parse_kexinit: none,zlib\\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\\r\\ndebug1: kex: server->client aes128-cbc hmac-sha1 zlib\\r\\ndebug2: mac_setup: setup hmac-sha1\\r\\ndebug1: kex: client->server aes128-cbc hmac-sha1 zlib\\r\\ndebug1: kex: diffie-hellman-group14-sha1 need=20 dh_need=20\\r\\ndebug1: kex: diffie-hellman-group14-sha1 need=20 dh_need=20\\r\\ndebug2: bits set: 1033/2048\\r\\ndebug1: sending SSH2_MSG_KEXDH_INIT\\r\\ndebug1: expecting SSH2_MSG_KEXDH_REPLY\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug1: Server host key: RSA 17:42:f3:e5:d0:dc:3b:0f:57:8b:7a:b5:17:eb:0d:08\\r\\ndebug3: load_hostkeys: loading entries for host \\\"\\\" from file \\\"/dev/null\\\"\\r\\ndebug3: load_hostkeys: loaded 0 keys\\r\\ndebug3: load_hostkeys: loading entries for host \\\"\\\" from file \\\"/dev/null\\\"\\r\\ndebug3: load_hostkeys: loaded 0 keys\\r\\nWarning: Permanently added ',' (RSA) to the list of known hosts.\\r\\ndebug2: bits set: 1015/2048\\r\\ndebug1: ssh_rsa_verify: signature correct\\r\\ndebug2: kex_derive_keys\\r\\ndebug2: set_newkeys: mode 1\\r\\ndebug1: Enabling compression at level 6.\\r\\ndebug1: SSH2_MSG_NEWKEYS sent\\r\\ndebug1: expecting SSH2_MSG_NEWKEYS\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: set_newkeys: mode 0\\r\\ndebug1: SSH2_MSG_NEWKEYS received\\r\\ndebug1: SSH2_MSG_SERVICE_REQUEST sent\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: service_accept: ssh-userauth\\r\\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\\r\\ndebug2: key: /u/users/ansible/.ssh/id_rsa (0x7f3930cf7e50),\\r\\ndebug2: key: /u/users/ansible/.ssh/id_dsa ((nil)),\\r\\ndebug2: key: /u/users/ansible/.ssh/id_ecdsa ((nil)),\\r\\ndebug2: key: /u/users/ansible/.ssh/id_ed25519 ((nil)),\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug1: Authentications that can continue: publickey,password\\r\\ndebug3: start over, passed a different list publickey,password\\r\\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\\r\\ndebug3: authmethod_lookup publickey\\r\\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\\r\\ndebug3: authmethod_is_enabled publickey\\r\\ndebug1: Next authentication method: publickey\\r\\ndebug1: Offering RSA public key: /u/users/ansible/.ssh/id_rsa\\r\\ndebug3: send_pubkey_test\\r\\ndebug2: we sent a publickey packet, wait for reply\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug1: Server accepts key: pkalg ssh-rsa blen 279\\r\\ndebug2: input_userauth_pk_ok: fp a3:51:62:ac:7d:f7:bd:1b:be:e3:ce:c0:c0:9b:ca:60\\r\\ndebug3: sign_and_send_pubkey: RSA a3:51:62:ac:7d:f7:bd:1b:be:e3:ce:c0:c0:9b:ca:60\\r\\ndebug1: key_parse_private2: missing begin marker\\r\\ndebug1: read PEM private key done: type RSA\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug1: Authentication succeeded (publickey).\\r\\nAuthenticated to  ([]:22).\\r\\ndebug2: fd 5 setting O_NONBLOCK\\r\\ndebug2: fd 6 setting O_NONBLOCK\\r\\ndebug1: channel 0: new [client-session]\\r\\ndebug3: ssh_session2_open: channel_new: 0\\r\\ndebug2: channel 0: send open\\r\\ndebug1: Entering interactive session.\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: callback start\\r\\ndebug2: fd 3 setting TCP_NODELAY\\r\\ndebug3: packet_set_tos: set IP_TOS 0x10\\r\\ndebug2: client_session2_setup: id 0\\r\\ndebug2: channel 0: request pty-req confirm 1\\r\\ndebug1: Sending environment.\\r\\ndebug3: Ignored env XDG_SESSION_ID\\r\\ndebug3: Ignored env HOSTNAME\\r\\ndebug3: Ignored env SHELL\\r\\ndebug3: Ignored env TERM\\r\\ndebug3: Ignored env HISTSIZE\\r\\ndebug3: Ignored env USER\\r\\ndebug3: Ignored env LS_COLORS\\r\\ndebug3: Ignored env COBBLER_SERVER\\r\\ndebug3: Ignored env MAIL\\r\\ndebug3: Ignored env PATH\\r\\ndebug3: Ignored env PWD\\r\\ndebug1: Sending env LANG = en_US.UTF-8\\r\\ndebug2: channel 0: request env confirm 0\\r\\ndebug3: Ignored env HISTCONTROL\\r\\ndebug3: Ignored env SHLVL\\r\\ndebug3: Ignored env HOME\\r\\ndebug3: Ignored env LOGNAME\\r\\ndebug3: Ignored env LESSOPEN\\r\\ndebug3: Ignored env _\\r\\ndebug3: Ignored env OLDPWD\\r\\ndebug1: Sending command: /bin/sh -c 'LANG=C LC_MESSAGES=C LC_ALL=C /usr/local/python/bin/python /u/b/.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/setup; rm -rf \\\"/u/b/.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/\\\" > /dev/null 2>&1 && sleep 0'\\r\\ndebug2: channel 0: request exec confirm 1\\r\\ndebug2: callback done\\r\\ndebug2: channel 0: open confirm rwindow 100000 rmax 16384\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: channel_input_status_confirm: type 99 id 0\\r\\ndebug2: PTY allocation request accepted on channel 0\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: channel_input_status_confirm: type 99 id 0\\r\\ndebug2: exec request accepted on channel 0\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\\r\\ndebug3: Received SSH2_MSG_IGNORE\\r\\ndebug2: channel 0: rcvd close\\r\\ndebug2: channel 0: output open -> drain\\r\\ndebug2: channel 0: close_read\\r\\ndebug2: channel 0: input open -> closed\\r\\ndebug3: channel 0: will not send data after close\\r\\ndebug2: channel 0: obuf empty\\r\\ndebug2: channel 0: close_write\\r\\ndebug2: channel 0: output drain -> closed\\r\\ndebug2: channel 0: almost dead\\r\\ndebug2: channel 0: gc: notify user\\r\\ndebug2: channel 0: gc: user detached\\r\\ndebug2: channel 0: send close\\r\\ndebug2: channel 0: is dead\\r\\ndebug2: channel 0: garbage collecting\\r\\ndebug1: channel 0: free: client-session, nchannels 1\\r\\ndebug3: channel 0: status: The following connections are open:\\r\\n  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\\r\\n\\r\\ndebug1: fd 1 clearing O_NONBLOCK\\r\\ndebug1: fd 2 clearing O_NONBLOCK\\r\\nConnection to  closed.\\r\\nTransferred: sent 3472, received 7152 bytes, in 0.4 seconds\\r\\nBytes per second: sent 8204.2, received 16900.0\\r\\ndebug1: Exit status 0\\r\\ndebug1: compress outgoing: raw data 1676, compressed 1067, factor 0.64\\r\\ndebug1: compress incoming: raw data 7761, compressed 5020, factor 0.65\\r\\n\", \"module_stdout\": \"debug[67240527]: 18/11/2016 23:37:06:648 SshCharConv/sshcharconv.c:214/autocvt_set: fd 7 had fccsid 0, pccsid 819 and cvt OFF, now 0,0 and OFF\\r\\r\\ndebug[67240527]: setsid() failed, but we just forked, so this is because we have already called setsid() (e.g. in pty-allocation).\\r\\r\\ndebug[67240527]: /etc/nologin_VLINKT2 does not exist.\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshUnixUser/sshunixuser.c:1487/ssh_user_login_is_allowed: login_allowed = TRUE, password_expired = FALSE, ignore_password_expiration = FALSE, aix_rlogin_prohibited = FALSE, ignore_aix_rlogin_prohibition = FALSE, nisplus_no_permission = FALSE, ignore_nisplus_no_permission = FALSE\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 Ssh2Common/sshcommon.c:918/ssh_common_confidential_data_cleanup: Freeing confidential data.\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:56/destr: Reference to non-existent callback (doing nothing).\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:56/destr: Reference to non-existent callback (doing nothing).\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:56/destr: Reference to non-existent callback (doing nothing).\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:56/destr: Reference to non-existent callback (doing nothing).\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:407/detach: Detach: handle=38c6a418\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:442/delet: Invoking callback @38c1bbb8.\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:442/delet: Callback @38c1bbb8 returned.\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshADTList/sshadt_list.c:56/destr: Reference to non-existent callback (doing nothing).\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:649 SshUnixUser/sshunixuser.c:2073/ssh_user_close_fds: max_fd: 2048\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:651 Ssh2ChannelSession/sshchsession.c:1175/close_fds_and_openlog: Opening log... (facility: 32)\\r\\r\\nsshd2[67240527]: Now running on 's privileges.\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:660 Ssh2ChannelSession/sshchsession.c:739/ssh_session_init_env: Init env for \\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:660 SshUnixUser/sshunixuser.c:1487/ssh_user_login_is_allowed: login_allowed = TRUE, password_expired = FALSE, ignore_password_expiration = FALSE, aix_rlogin_prohibited = FALSE, ignore_aix_rlogin_prohibition = FALSE, nisplus_no_permission = FALSE, ignore_nisplus_no_permission = FALSE\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:660 SshUserFiles/sshuserfiles.c:125/ssh_user_build_dir: path_template = %D/.ssh2\\r\\r\\ndebug[67240527]: Environment:\\r\\r\\ndebug[67240527]:   HOME=/u/\\r\\r\\ndebug[67240527]:   USER=\\r\\r\\ndebug[67240527]:   LOGNAME=\\r\\r\\ndebug[67240527]:   PATH=/bin:/usr/bin:/usr/ucb:/usr/bin/X11:/usr/local/bin:/opt/tectia/bin\\r\\r\\ndebug[67240527]:   MAIL=/var/mail/\\r\\r\\ndebug[67240527]:   SHELL=/bin/sh\\r\\r\\ndebug[67240527]:   SSH2_CLIENT= 40530  22\\r\\r\\ndebug[67240527]:   SSH2_CLIENT_VERSION=SSH-2.0-OpenSSH_6.6.1\\r\\r\\ndebug[67240527]:   SSH2_CLIENT_HOSTKEY_ALG=ssh-rsa\\r\\r\\ndebug[67240527]:   SSH2_CLIENT_CIPHER=aes128-cbc\\r\\r\\ndebug[67240527]:   SSH2_CLIENT_COMPRESSION=zlib\\r\\r\\ndebug[67240527]:   SSH2_CLIENT_LOGIN_METHOD=publickey\\r\\r\\ndebug[67240527]:   TERM=screen\\r\\r\\ndebug[67240527]:   LIBPATH=/opt/tectia/lib\\r\\r\\ndebug[67240527]:   SSH_SFTP_RECORD_TRUNCATE=yes\\r\\r\\ndebug[67240527]:   SSH_SFT_ADVISOR_RECORD_TRUNCATE=yes\\r\\r\\ndebug[67240527]:   SSH_SFTP_ADVISOR_RECORD_TRUNCATE=yes\\r\\r\\ndebug[67240527]:   LANG=en_US.UTF-8\\r\\r\\ndebug[67240527]:   _BPXK_AUTOCVT=ON\\r\\r\\ndebug[67240527]:   _CEE_RUNOPTS=FILETAG(AUTOCVT,NOAUTOTAG),TRAP(ON)\\r\\r\\ndebug[67240527]:   SSH2_SFTP_LOG_FACILITY=-1\\r\\r\\ndebug[67240527]: 18/11/2016 23:37:06:660 SshUserFiles/sshuserfiles.c:125/ssh_user_build_dir: path_template = %D/.ssh2\\r\\r\\nTraceback (most recent call last):\\r\\n  File \\\"/u//.ansible/tmp/ansible-tmp-1479508623.33-83022043867538/setup\\\", line 109, in <module>\\r\\n    z = zipfile.ZipFile(zipped_mod, mode='r')\\r\\n  File \\\"/usr/local/python/lib/python2.7/zipfile.py\\\", line 766, in __init__\\r\\n    self._RealGetContents()\\r\\n  File \\\"/usr/local/python/lib/python2.7/zipfile.py\\\", line 807, in _RealGetContents\\r\\n    raise BadZipfile, \\\"File is not a zip file\\\"\\r\\nzipfile.BadZipfile: File is not a zip file\\r\\nCannot set locale: The internationalization variable settings are invalid.\\r\\n\", \"msg\": \"MODULE FAILURE\"}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @/u/ansible/demo-day/system_z.retry\r\n\r\nPLAY RECAP *********************************************************************\r\n                    : ok=0    changed=0    unreachable=0    failed=1\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/439969910","html_url":"https://github.com/ansible/ansible/issues/18555#issuecomment-439969910","issue_url":"https://api.github.com/repos/ansible/ansible/issues/18555","id":439969910,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTk2OTkxMA==","user":{"login":"gitaaron","id":20967,"node_id":"MDQ6VXNlcjIwOTY3","avatar_url":"https://avatars2.githubusercontent.com/u/20967?v=4","gravatar_id":"","url":"https://api.github.com/users/gitaaron","html_url":"https://github.com/gitaaron","followers_url":"https://api.github.com/users/gitaaron/followers","following_url":"https://api.github.com/users/gitaaron/following{/other_user}","gists_url":"https://api.github.com/users/gitaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/gitaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitaaron/subscriptions","organizations_url":"https://api.github.com/users/gitaaron/orgs","repos_url":"https://api.github.com/users/gitaaron/repos","events_url":"https://api.github.com/users/gitaaron/events{/privacy}","received_events_url":"https://api.github.com/users/gitaaron/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T17:12:16Z","updated_at":"2018-11-19T17:12:16Z","author_association":"NONE","body":"I was able to get ansible working on zOS.   A few notes -\r\n1.  I had to install the proper version of python.  The rocket website provides two versions where one internally represents strings in ASCII (or ISO8859-1 ? ) and the other (older version) internally represents strings in EBCDIC.  The version that represents strings in EBCDIC fails with a slew of standard python libraries such as 'zipfile'.\r\n2.  I had to modify the ansible config variable 'execute' to make use of the rocket provided 'bash' otherwise the newer version of python does not work."}}
{"actor":{"display_login":"gitaaron"}}