Re: [ansible-project] trying to reset root password by using .yml playbook, but its failed with permission denied error, however same .yml playbook is working via terminal.

655 views
Skip to first unread message

Jean-Yves LENHOF

unread,
Jul 21, 2018, 11:43:06 AM7/21/18
to ansible...@googlegroups.com

Hi,

Are become & become_user setted ?

Reagrds,


JYL


Le 21/07/2018 à 16:26, Deepan M a écrit :

Can you someone please read below error and suggest what needs to be done!

Error:-

fatal: [usa7061lv1771]: FAILED! => {"changed": false, "cmd": "/usr/sbin/usermod -p VALUE_SPECIFIED_IN_NO_LOG_PARAMETER root", "msg": "[Errno 13] Permission denied", "rc": 13}

Playbook:-

cat change-root-password1.yml
- hosts: xerox
  tasks:
  - name: Change root password
    user: name=root update_password=always password=$6$4ylWRRN/$5X51fvVvOxzkyI2yfzdQT.c/R9tVDGqaByrABrv7VOzU2KXUClTvOfubzPFSzOnNJlcoftsUwSe1bF45iANJ01

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fe78f66d-f9b2-46f4-b934-3ce1908705ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deepan M

unread,
Jul 21, 2018, 12:28:03 PM7/21/18
to Ansible Project
Hi,

Below is my conf details

 cat ansible.cfg
[defaults]
host_key_checking = False
remote_user = q5c9nf32
inventory = inventory

[privilege_escalation]
become = True
become_method = sudo
become_user = root
become_ask_pass = True

Thanks,
Deepan M

Kai Stian Olstad

unread,
Jul 21, 2018, 1:42:37 PM7/21/18
to ansible...@googlegroups.com
On 21.07.2018 18:28, Deepan M wrote:
> Hi,
>
> Below is my conf details
>
> cat ansible.cfg
> [defaults]
> host_key_checking = False
> remote_user = q5c9nf32
> inventory = inventory
>
> [privilege_escalation]
> become = True
> become_method = sudo
> become_user = root
> become_ask_pass = True

You should run ansible-playbook with -vvvv and see if that is giving
some more useful information about what is happening.

--
Kai Stian Olstad

Deepan M

unread,
Jul 21, 2018, 2:02:37 PM7/21/18
to ansible...@googlegroups.com
Hi,


If i run like below from terminal, then its working perfect but when i try from jenkins, its failing.

#ansible-playbook change-root-password1.yml

Thanks,
Deepan M

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6736079e3fab57fcd265c22f44739116%40olstad.com.

Kai Stian Olstad

unread,
Jul 21, 2018, 2:27:47 PM7/21/18
to ansible...@googlegroups.com
On 21.07.2018 20:02, Deepan M wrote:
> Hi,
>
> If i run like below from terminal, then its working perfect but when i
> try
> from jenkins, its failing.
>
>
> #ansible-playbook change-root-password1.yml

And that is why you need to run it with -vvvv in Jenkins to possible see
what is happening.
Playing a guessing game on what it could be is not very futile.

--
Kai Stian Olstad

Deepan M

unread,
Jul 21, 2018, 2:34:39 PM7/21/18
to ansible...@googlegroups.com
Not aware where I need to add -vvvv in Jenkins tool?? Need to add as extra var?

Thanks,
Deepan

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/703e7d1dbf1c73c3c8c54032a13abbe7%40olstad.com.

Deepan M

unread,
Jul 22, 2018, 6:22:25 AM7/22/18
to ansible...@googlegroups.com
Hi,

  Please find below -vvvv output and let to know how to fix this issue.


Building in workspace /opt/hcl/support/unix/l5c9nf32/.jenkins/workspace/root_reset_pass
[root_reset_pass] $ /usr/bin/ansible-playbook /Ansible_project/change-root-password1.yml -i /Ansible_project/inventory -f 100 -e ******** -e ansible_user=q5c9nf32 -vvvv
ansible-playbook 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/opt/hcl/support/unix/l5c9nf32/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /Ansible_project/inventory inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc

PLAYBOOK: change-root-password1.yml ********************************************
1 plays in /Ansible_project/change-root-password1.yml

PLAY [xerox] *******************************************************************

TASK [Gathering Facts] *********************************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<usa0300lv1405> (0, '/home/q5c9nf32\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f" does not exist\r\ndebug2: resolving "usa0300lv1405" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to usa0300lv1405 [13.129.106.54] 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 /opt/hcl/support/unix/l5c9nf32/.ssh/id_rsa type 1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_ecdsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_ecdsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_ed25519 type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /opt/hcl/support/unix/l5c9nf32/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.4\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_5.3\r\ndebug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to usa0300lv1405:22 as \'q5c9nf32\'\r\ndebug3: hostkeys_foreach: reading file "/opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type RSA in file /opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts:79\r\ndebug3: load_hostkeys: loaded 1 keys from usa0300lv1405\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-...@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve255...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c\r\ndebug2: host key algorithms: ssh-rsa-...@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ssh-ed2551...@openssh.com,ssh-dss-...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss\r\ndebug2: ciphers ctos: chacha20...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: ciphers stoc: chacha20...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: MACs ctos: umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-s...@openssh.com,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-s...@openssh.com,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: zl...@openssh.com,zlib,none\r\ndebug2: compression stoc: zl...@openssh.com,zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,ssh-dss\r\ndebug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se\r\ndebug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se\r\ndebug2: MACs ctos: hmac-md5,hmac-sha1,uma...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: MACs stoc: hmac-md5,hmac-sha1,uma...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: compression ctos: none,zl...@openssh.com\r\ndebug2: compression stoc: none,zl...@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: diffie-hellman-group-exchange-sha256\r\ndebug1: kex: host key algorithm: ssh-rsa\r\ndebug1: kex: server->client cipher: aes128-ctr MAC: uma...@openssh.com compression: zl...@openssh.com\r\ndebug1: kex: client->server cipher: aes128-ctr MAC: uma...@openssh.com compression: zl...@openssh.com\r\ndebug1: kex: diffie-hellman-group-exchange-sha256 need=16 dh_need=16\r\ndebug1: kex: diffie-hellman-group-exchange-sha256 need=16 dh_need=16\r\ndebug3: send packet: type 34\r\ndebug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent\r\ndebug3: receive packet: type 31\r\ndebug1: got SSH2_MSG_KEX_DH_GEX_GROUP\r\ndebug2: bits set: 1558/3072\r\ndebug3: send packet: type 32\r\ndebug1: SSH2_MSG_KEX_DH_GEX_INIT sent\r\ndebug3: receive packet: type 33\r\ndebug1: got SSH2_MSG_KEX_DH_GEX_REPLY\r\ndebug1: Server host key: ssh-rsa SHA256:DEm6sGDsYaov4SIfuwUe27lhgNXiF9BDvQqr8WJM9rw\r\ndebug3: hostkeys_foreach: reading file "/opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type RSA in file /opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts:79\r\ndebug3: load_hostkeys: loaded 1 keys from usa0300lv1405\r\ndebug3: hostkeys_foreach: reading file "/opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type RSA in file /opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts:79\r\ndebug3: load_hostkeys: loaded 1 keys from 13.129.106.54\r\ndebug1: Host \'usa0300lv1405\' is known and matches the RSA host key.\r\ndebug1: Found key in /opt/hcl/support/unix/l5c9nf32/.ssh/known_hosts:79\r\ndebug2: bits set: 1599/3072\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 4294967296 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey after 4294967296 blocks\r\ndebug2: key: /opt/hcl/support/unix/l5c9nf32/.ssh/id_rsa (0x5631d7def0b0)\r\ndebug2: key: /opt/hcl/support/unix/l5c9nf32/.ssh/id_dsa ((nil))\r\ndebug2: key: /opt/hcl/support/unix/l5c9nf32/.ssh/id_ecdsa ((nil))\r\ndebug2: key: /opt/hcl/support/unix/l5c9nf32/.ssh/id_ed25519 ((nil))\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 53\r\ndebug3: input_userauth_banner\r\n\n  ----------------------------------------------------------------------------  \n    _/_/ _/_/_/ \n     _/_/_/_/             PRIVACY AND SECURITY NOTICE  \n       _/_/     \n     _/_/_/_/   \n    _/_/ _/_/_/ \n  ----------------------------------------------------------------------------  \n\n     This is a Xerox computer system that is "FOR OFFICIAL XEROX USE ONLY"\n     by specifically authorized personnel and includes Xerox confidential,\n     proprietary, and privileged information. This system may be subject to\n     monitoring. No expectation of privacy is to be assumed. Unauthorized \n     attempts to upload, download, or change information on this system are\n     strictly prohibited and may be punishable under applicable law. \n \n     Individuals found performing unauthorized activities are subject to\n     disciplinary action including termination and criminal and civil \n     prosecution. Anyone using this system must agree to abide by Xerox\n     policies and expressly consent to monitoring of their actions by their\n     continuance. Otherwise, please log-off this system immediately.\n\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled gssapi-with-mic\r\ndebug1: Next authentication method: gssapi-with-mic\r\ndebug1: Unspecified GSS failure.  Minor code may provide more information\nNo Kerberos credentials available (default cache: KEYRING:persistent:6103032)\n\r\ndebug1: Unspecified GSS failure.  Minor code may provide more information\nNo Kerberos credentials available (default cache: KEYRING:persistent:6103032)\n\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug3: authmethod_is_enabled gssapi-keyex\r\ndebug1: Next authentication method: gssapi-keyex\r\ndebug1: No valid Key exchange context\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /opt/hcl/support/unix/l5c9nf32/.ssh/id_rsa\r\ndebug3: send_pubkey_test\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: pkalg ssh-rsa blen 279\r\ndebug2: input_userauth_pk_ok: fp SHA256:l8gNyu9H8oK5ZtRKViUV1ULZsrO2Xd9s7cGm/2NdwZ0\r\ndebug3: sign_and_send_pubkey: RSA SHA256:l8gNyu9H8oK5ZtRKViUV1ULZsrO2Xd9s7cGm/2NdwZ0\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to usa0300lv1405 ([13.129.106.54]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f.awiQiSvqUJia9MRu\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 [/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 30481\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\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 = 30483\r\ndebug3: mux_client_request_session: session request sent\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 ~ && sleep 0\'", env 1\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: send packet: type 90\r\ndebug3: receive packet: type 91\r\ndebug2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo ~ && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\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\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 96\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\ndebug3: receive packet: type 98\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\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype e...@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close_read\r\ndebug2: channel 2: input open -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\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  #1 mux-control (t16 r-1 i3/0 o1/16 fd 5/5 cc -1)\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  #1 mux-control (t16 r-1 i3/0 o3/0 fd 5/5 cc -1)\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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422 `" && echo ansible-tmp-1532254705.61-106065278025422="` echo /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422 `" ) && sleep 0'"'"''
<usa0300lv1405> (0, 'ansible-tmp-1532254705.61-106065278025422=/home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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')
<usa0300lv1405> PUT /tmp/tmpJJa7gS TO /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/setup.py
<usa0300lv1405> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f '[usa0300lv1405]'
<usa0300lv1405> (0, 'sftp> put /tmp/tmpJJa7gS /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/setup.py\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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-...@openssh.com" revision 1\r\ndebug2: Server supports extension "sta...@openssh.com" revision 2\r\ndebug2: Server supports extension "fsta...@openssh.com" revision 2\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/q5c9nf32 size 0\r\ndebug3: Looking up /tmp/tmpJJa7gS\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/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/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:32578\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 32578 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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'chmod u+x /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/ /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/setup.py && sleep 0'"'"''
<usa0300lv1405> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f -tt usa0300lv1405 '/bin/sh -c '"'"'/usr/bin/python /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/setup.py; rm -rf "/home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254705.61-106065278025422/" > /dev/null 2>&1 && sleep 0'"'"''
<usa0300lv1405> (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "upstart", "ansible_user_id": "q5c9nf32", "ansible_selinux_python_present": true, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAABIwAAAQEAv8x5e5cM6CABghooczdHxcilladHBTQEU2V/yOsJnJIQMczBupIBcKi9CvEdoKOF9AuOOFejHTBXWBw7uWQyvAj1SPmuxiMnzJLn9/UjMm+TQBkFeAO3Fopw316IwwXjZk0UWXGIjSIX3m4FqXC7saJgwMc4z1ybjcwDcDy8vqSx0bhCav1vjU8i5ASCHetqQKWoaE+rZ5fUPzkKFuJjZFbkBPKGdJmjytRme87MrQXL+7IvFVWU5OlJx3OX9J8Q3iuS9vNZVLTYzxl0VVCr1VdE3TueXnH1MbT30Eb6iUx2L0y9LxltpCgiSs77e1pOFpgkGJVjFTQ9fakslBIZPw==", "gather_subset": ["all"], "ansible_system_capabilities": [""], "ansible_local": {}, "ansible_distribution_version": "6.5", "ansible_domain": "na.xerox.net", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_user_shell": "/bin/bash", "ansible_date_time": {"weekday_number": "0", "iso8601_basic_short": "20180722T061827", "tz": "EDT", "weeknumber": "29", "hour": "06", "year": "2018", "minute": "18", "tz_offset": "-0400", "month": "07", "epoch": "1532254707", "iso8601_micro": "2018-07-22T10:18:27.309965Z", "weekday": "Sunday", "time": "06:18:27", "date": "2018-07-22", "iso8601": "2018-07-22T10:18:27Z", "day": "22", "iso8601_basic": "20180722T061827309847", "second": "27"}, "ansible_real_user_id": 103032, "ansible_processor_cores": 1, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "RedHat", "ansible_env": {"LESSOPEN": "||/usr/bin/lesspipe.sh %s", "SSH_CLIENT": "13.129.109.49 37864 22", "CVS_RSH": "ssh", "LOGNAME": "q5c9nf32", "USER": "q5c9nf32", "QTDIR": "/usr/lib64/qt-3.3", "PATH": "/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin", "LANG": "en_US.UTF-8", "QTLIB": "/usr/lib64/qt-3.3/lib", "TERM": "xterm", "SHELL": "/bin/bash", "QTINC": "/usr/lib64/qt-3.3/include", "G_BROKEN_FILENAMES": "1", "HOME": "/home/q5c9nf32", "MODULESHOME": "/usr/share/Modules", "BASH_FUNC_module()": "() {  eval `/usr/bin/modulecmd bash $*`\\n}", "_": "/usr/bin/python", "MODULEPATH": "/usr/share/Modules/modulefiles:/etc/modulefiles", "SSH_CONNECTION": "13.129.109.49 37864 13.129.106.54 22", "SSH_TTY": "/dev/pts/0", "LOADEDMODULES": "", "SHLVL": "2", "PWD": "/home/q5c9nf32", "MAIL": "/var/mail/q5c9nf32", "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"}, "ansible_effective_group_id": 5555, "ansible_bios_version": "6.00", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz"], "ansible_virtualization_type": "VMware", "ansible_lo": {"features": {"generic_receive_offload": "off", "tx_checksumming": "on", "large_receive_offload": "off", "rx_checksumming": "on", "udp_fragmentation_offload": "off", "generic_segmentation_offload": "on", "tcp_segmentation_offload": "on", "scatter_gather": "on", "ntuple_filters": "off", "receive_hashing": "off"}, "hw_timestamp_filters": [], "mtu": 16436, "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": 3817, "ansible_architecture": "x86_64", "ansible_device_links": {"masters": {"sdb1": ["dm-2"], "sda2": ["dm-0", "dm-1", "dm-3", "dm-4"]}, "labels": {}, "ids": {"sdb1": ["lvm-pv-uuid-mZsek2-40zg-BYIc-gWdj-e4KI-HDso-rxeY59"], "sr0": ["ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001"], "sda2": ["lvm-pv-uuid-qPhONU-GfKQ-i86E-WzQF-WqdL-YnAk-1NDJUZ"], "dm-4": ["dm-name-VolGroup00-LogVol03", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnYsqu6FfK2SVSKu4GqCxogklxIbddD29I"], "dm-2": ["dm-name-volgroup01-logvol01", "dm-uuid-LVM-KRauvFcLdxzdnPlFFT6v9wDwCOKTFRho27nti7Z6JCFkCtwpygLeIeDj3O9mzeCY"], "dm-3": ["dm-name-VolGroup00-LogVol01", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnuBZ3SuJkgi7hIAkkrKp9HXuV27diDFnn"], "dm-0": ["dm-name-VolGroup00-LogVol00", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnZ7nXHb4ZxvdzyKfrtef57duLkN6EfSMU"], "dm-1": ["dm-name-VolGroup00-LogVol02", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCn6R47kc53MjSs5bXAgeD24cbPilN7lmDA"]}, "uuids": {"sda1": ["1ebc9840-0ebf-4d96-828f-f6d3783dab98"], "dm-4": ["5af7b703-9492-47a6-959c-060bbb9241d9"], "dm-2": ["874bde83-3cba-405a-84c6-9c707032e505"], "dm-3": ["43cd65b0-3bfd-4dd4-918d-c0df442c9d7d"], "dm-0": ["21d7bae2-5507-4c3c-be5c-82607d8f5193"], "dm-1": ["ce9dd18d-010c-48d4-8948-158978667589"]}}, "ansible_default_ipv4": {"macaddress": "00:50:56:84:2b:61", "network": "13.129.106.0", "mtu": 1500, "broadcast": "13.129.106.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "13.129.106.54", "interface": "eth0", "type": "ether", "gateway": "13.129.106.1"}, "ansible_swapfree_mb": 12287, "ansible_default_ipv6": {}, "ansible_distribution_release": "Santiago", "ansible_system_vendor": "VMware, Inc.", "ansible_apparmor": {"status": "disabled"}, "ansible_cmdline": {"LANG": "en_US.UTF-8", "rd_NO_LUKS": true, "ro": true, "KEYBOARDTYPE": "pc", "rd_NO_MD": true, "rd_LVM_LV": "VolGroup00/LogVol02", "KEYTABLE": "us", "crashkernel": "129M@0M", "SYSFONT": "latarcyrheb-sun16", "root": "/dev/mapper/VolGroup00-LogVol00", "rd_NO_DM": true}, "ansible_effective_user_id": 103032, "ansible_user_gid": 5555, "ansible_selinux": {"status": "disabled"}, "ansible_product_version": "None", "ansible_os_family": "RedHat", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_system": "Linux", "ansible_pkg_mgr": "yum", "ansible_memfree_mb": 272, "ansible_devices": {"ram14": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram15": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram12": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram13": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram10": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram11": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram8": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram9": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "ram3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "32768", "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": "16.00 MB"}, "sr0": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "NECVMWar", "sectors": "2097151", "links": {"masters": [], "labels": [], "ids": ["ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001"], "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": "VMware IDE CDR10", "partitions": {}, "holders": [], "size": "1024.00 MB"}, "dm-4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "16777216", "links": {"masters": [], "labels": [], "ids": ["dm-name-VolGroup00-LogVol03", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnYsqu6FfK2SVSKu4GqCxogklxIbddD29I"], "uuids": ["5af7b703-9492-47a6-959c-060bbb9241d9"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "8.00 GB"}, "dm-2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "251650048", "links": {"masters": [], "labels": [], "ids": ["dm-name-volgroup01-logvol01", "dm-uuid-LVM-KRauvFcLdxzdnPlFFT6v9wDwCOKTFRho27nti7Z6JCFkCtwpygLeIeDj3O9mzeCY"], "uuids": ["874bde83-3cba-405a-84c6-9c707032e505"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "120.00 GB"}, "dm-3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "16777216", "links": {"masters": [], "labels": [], "ids": ["dm-name-VolGroup00-LogVol01", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnuBZ3SuJkgi7hIAkkrKp9HXuV27diDFnn"], "uuids": ["43cd65b0-3bfd-4dd4-918d-c0df442c9d7d"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "8.00 GB"}, "dm-0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "33554432", "links": {"masters": [], "labels": [], "ids": ["dm-name-VolGroup00-LogVol00", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCnZ7nXHb4ZxvdzyKfrtef57duLkN6EfSMU"], "uuids": ["21d7bae2-5507-4c3c-be5c-82607d8f5193"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "16.00 GB"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "25165824", "links": {"masters": [], "labels": [], "ids": ["dm-name-VolGroup00-LogVol02", "dm-uuid-LVM-Qyz4c66abAz57yXzG1n6WVoQVXjuokCn6R47kc53MjSs5bXAgeD24cbPilN7lmDA"], "uuids": ["ce9dd18d-010c-48d4-8948-158978667589"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "12.00 GB"}, "sda": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "VMware", "sectors": "104857600", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "Virtual disk", "partitions": {"sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0", "dm-1", "dm-3", "dm-4"], "labels": [], "ids": ["lvm-pv-uuid-qPhONU-GfKQ-i86E-WzQF-WqdL-YnAk-1NDJUZ"], "uuids": []}, "sectors": "103806976", "start": "1050624", "holders": ["VolGroup00-LogVol00", "VolGroup00-LogVol02", "VolGroup00-LogVol01", "VolGroup00-LogVol03"], "size": "49.50 GB"}, "sda1": {"sectorsize": 512, "uuid": "1ebc9840-0ebf-4d96-828f-f6d3783dab98", "links": {"masters": [], "labels": [], "ids": [], "uuids": ["1ebc9840-0ebf-4d96-828f-f6d3783dab98"]}, "sectors": "1048576", "start": "2048", "holders": [], "size": "512.00 MB"}}, "holders": [], "size": "50.00 GB"}, "sdb": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "VMware", "sectors": "251658240", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "Virtual disk", "partitions": {"sdb1": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-2"], "labels": [], "ids": ["lvm-pv-uuid-mZsek2-40zg-BYIc-gWdj-e4KI-HDso-rxeY59"], "uuids": []}, "sectors": "251658162", "start": "63", "holders": ["volgroup01-logvol01"], "size": "120.00 GB"}}, "holders": [], "size": "120.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": 103032, "ansible_memory_mb": {"real": {"total": 3817, "used": 3545, "free": 272}, "swap": {"cached": 0, "total": 12287, "free": 12287, "used": 0}, "nocache": {"used": 466, "free": 3351}}, "ansible_distribution": "RedHat", "ansible_user_dir": "/home/q5c9nf32", "ansible_dns": {"nameservers": ["13.135.130.15", "#", "USA0300NADC001", "13.135.177.15", "#", "USA0300NADC002", "13.151.178.15", "#", "USA7061NADC002"], "search": ["corp.xerox.com", "na.xerox.net", "apps.mc.xerox.com"]}, "ansible_distribution_major_version": "6", "module_setup": true, "ansible_processor_count": 2, "ansible_hostname": "usa0300lv1405", "ansible_processor_vcpus": 2, "ansible_swaptotal_mb": 12287, "ansible_lsb": {"release": "6.5", "major_release": "6", "codename": "Santiago", "id": "RedHatEnterpriseServer", "description": "Red Hat Enterprise Linux Server release 6.5 (Santiago)"}, "ansible_real_group_id": 5555, "ansible_bios_date": "09/30/2014", "ansible_all_ipv6_addresses": ["fe80::250:56ff:fe84:2b61", "fe80::250:56ff:fe84:41c0"], "ansible_interfaces": ["lo", "eth1", "eth0"], "ansible_uptime_seconds": 7249667, "ansible_machine_id": "f16b7c83c72c1ecbe5ae269100000035", "ansible_kernel": "2.6.32-431.20.5.el6.x86_64", "ansible_user_gecos": "Deepan M (Atos) +919743435111", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 6, "major": 2, "releaselevel": "final", "serial": 0, "minor": 6}, "type": "CPython", "has_sslcontext": false, "version_info": [2, 6, 6, "final", 0]}, "ansible_processor_threads_per_core": 1, "ansible_fqdn": "usa0300lv1405.na.xerox.net", "ansible_mounts": [{"block_used": 1245388, "uuid": "N/A", "size_total": 16910295040, "block_total": 4128490, "mount": "/", "block_available": 2883102, "size_available": 11809185792, "fstype": "ext4", "inode_total": 1048576, "options": "rw", "device": "/dev/mapper/VolGroup00-LogVol00", "inode_used": 127398, "block_size": 4096, "inode_available": 921178}, {"block_used": 24112, "uuid": "N/A", "size_total": 528424960, "block_total": 129010, "mount": "/boot", "block_available": 104898, "size_available": 429662208, "fstype": "ext4", "inode_total": 32768, "options": "rw,nodev", "device": "/dev/sda1", "inode_used": 46, "block_size": 4096, "inode_available": 32722}, {"block_used": 144639, "uuid": "N/A", "size_total": 8455118848, "block_total": 2064238, "mount": "/tmp", "block_available": 1919599, "size_available": 7862677504, "fstype": "ext4", "inode_total": 524288, "options": "rw,nodev", "device": "/dev/mapper/VolGroup00-LogVol03", "inode_used": 923, "block_size": 4096, "inode_available": 523365}, {"block_used": 920985, "uuid": "N/A", "size_total": 8455118848, "block_total": 2064238, "mount": "/var", "block_available": 1143253, "size_available": 4682764288, "fstype": "ext4", "inode_total": 524288, "options": "rw,nodev", "device": "/dev/mapper/VolGroup00-LogVol01", "inode_used": 12097, "block_size": 4096, "inode_available": 512191}, {"block_used": 1620859, "uuid": "N/A", "size_total": 126823141376, "block_total": 30962681, "mount": "/u01", "block_available": 29341822, "size_available": 120184102912, "fstype": "ext3", "inode_total": 7864320, "options": "rw", "device": "/dev/mapper/volgroup01-logvol01", "inode_used": 12, "block_size": 4096, "inode_available": 7864308}, {"block_used": 1374553, "uuid": "N/A", "size_total": 52867891200, "block_total": 1613400, "mount": "/home/q5c9nf32", "block_available": 238847, "size_available": 7826538496, "fstype": "nfs", "inode_total": 6297598, "options": "rw,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,sloppy,addr=13.129.39.167", "device": "usa0300ux448:/HOME_DIR/q5c9nf32", "inode_used": 465520, "block_size": 32768, "inode_available": 5832078}], "ansible_eth0": {"macaddress": "00:50:56:84:2b:61", "features": {"generic_receive_offload": "off", "tx_checksumming": "on", "large_receive_offload": "on", "rx_checksumming": "on", "udp_fragmentation_offload": "off", "generic_segmentation_offload": "on", "tcp_segmentation_offload": "on", "scatter_gather": "on", "ntuple_filters": "off", "receive_hashing": "on"}, "type": "ether", "pciid": "0000:03:00.0", "module": "vmxnet3", "mtu": 1500, "device": "eth0", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "13.129.106.255", "netmask": "255.255.255.0", "network": "13.129.106.0", "address": "13.129.106.54"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::250:56ff:fe84:2b61"}], "active": true, "speed": 10000, "hw_timestamp_filters": []}, "ansible_eth1": {"macaddress": "00:50:56:84:41:c0", "features": {"generic_receive_offload": "off", "tx_checksumming": "on", "large_receive_offload": "on", "rx_checksumming": "on", "udp_fragmentation_offload": "off", "generic_segmentation_offload": "on", "tcp_segmentation_offload": "on", "scatter_gather": "on", "ntuple_filters": "off", "receive_hashing": "on"}, "type": "ether", "pciid": "0000:0b:00.0", "module": "vmxnet3", "mtu": 1500, "device": "eth1", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "10.1.255.255", "netmask": "255.255.0.0", "network": "10.1.0.0", "address": "10.1.248.13"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::250:56ff:fe84:41c0"}], "active": true, "speed": 10000, "hw_timestamp_filters": []}, "ansible_product_name": "VMware Virtual Platform", "ansible_machine": "x86_64", "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANt7ld0N7DneSyycxBXA6ISEgHga4tQDf6IUMHV9s+FhNESxDISoarGhLMFFSjzkuZjTRvq78megXXuh5qSEhseMGqOntHCY2LfQdPCbNNqshm9YBhT4VOOuewDj4UpXGB0tr7YKit+Du1kuaYHbRBHelzFhhjlgVsXiwDVGN3evAAAAFQCg4wmh398O97RYUyoYv2hosVYjJwAAAIEAjtRN88mX8heaZoM/hz6+0xqklfyUZsjaFXWugcOEajCtfI0a93hbcIQwQlBW4ODoNHOeMCUKtmfWyB5sLZCzOVbsQBTnRzCGf1yImq4SpDNw9dyNJe9SofhK2mC/rJhgYFhbcyI0sxVMCRBiwdsNc7FINgApFuxXPZa3uVEoA1QAAACAN6f/ZggzdhA7RyQatP3Ms39mZtKavB3wWrSJrWAHfbgYtOwUxksv8h61N+tRhEqozkhFtwjBeAEtb0Mf4z+Nz0j0Othj/M8ZhJH5C2TFNOQvAfnxP9S9BCCVOHJOxnRw7VkBw91/7De1VJJOJoBgHDqkaBQI2Z/uPS4E1KIO59M=", "ansible_nodename": "usa0300lv1405", "ansible_all_ipv4_addresses": ["13.129.106.54", "10.1.248.13"], "ansible_python_version": "2.6.6"}}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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 usa0300lv1405 closed.\r\n')
ok: [usa0300lv1405]
META: ran handlers

TASK [Change root password] ****************************************************
task path: /Ansible_project/change-root-password1.yml:3
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/user.py
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<usa0300lv1405> (0, '/home/q5c9nf32\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014 `" && echo ansible-tmp-1532254707.72-97457933058014="` echo /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014 `" ) && sleep 0'"'"''
<usa0300lv1405> (0, 'ansible-tmp-1532254707.72-97457933058014=/home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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')
<usa0300lv1405> PUT /tmp/tmptFvL6e TO /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/user.py
<usa0300lv1405> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f '[usa0300lv1405]'
<usa0300lv1405> (0, 'sftp> put /tmp/tmptFvL6e /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/user.py\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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-...@openssh.com" revision 1\r\ndebug2: Server supports extension "sta...@openssh.com" revision 2\r\ndebug2: Server supports extension "fsta...@openssh.com" revision 2\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/q5c9nf32 size 0\r\ndebug3: Looking up /tmp/tmptFvL6e\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/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/user.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:14417\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 14417 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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f usa0300lv1405 '/bin/sh -c '"'"'chmod u+x /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/ /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/user.py && sleep 0'"'"''
<usa0300lv1405> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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')
<usa0300lv1405> ESTABLISH SSH CONNECTION FOR USER: q5c9nf32
<usa0300lv1405> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=q5c9nf32 -o ConnectTimeout=10 -o ControlPath=/opt/hcl/support/unix/l5c9nf32/.ansible/cp/c3c8b1598f -tt usa0300lv1405 '/bin/sh -c '"'"'/usr/bin/python /home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/user.py; rm -rf "/home/q5c9nf32/.ansible/tmp/ansible-tmp-1532254707.72-97457933058014/" > /dev/null 2>&1 && sleep 0'"'"''
<usa0300lv1405> (0, '\r\n{"exception": "  File \\"/tmp/ansible_kwv1Qc/ansible_modlib.zip/ansible/module_utils/basic.py\\", line 2762, in run_command\\n    cmd = subprocess.Popen(args, **kwargs)\\n  File \\"/usr/lib64/python2.6/subprocess.py\\", line 642, in __init__\\n    errread, errwrite)\\n  File \\"/usr/lib64/python2.6/subprocess.py\\", line 1238, in _execute_child\\n    raise child_exception\\n", "cmd": "/usr/sbin/usermod -p VALUE_SPECIFIED_IN_NO_LOG_PARAMETER root", "failed": true, "rc": 13, "invocation": {"module_args": {"comment": null, "ssh_key_bits": 0, "update_password": "always", "non_unique": false, "force": false, "ssh_key_type": "rsa", "ssh_key_passphrase": null, "uid": null, "home": null, "append": false, "skeleton": null, "ssh_key_comment": "ansible-generated on usa0300lv1405", "group": null, "system": false, "state": "present", "local": null, "shell": null, "expires": null, "ssh_key_file": null, "groups": null, "move_home": false, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "seuser": null, "name": "root", "createhome": true, "remove": false, "login_class": null, "generate_ssh_key": null}}, "msg": "[Errno 13] Permission denied"}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: 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 = 30483\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 usa0300lv1405 closed.\r\n')
The full traceback is:
  File "/tmp/ansible_kwv1Qc/ansible_modlib.zip/ansible/module_utils/basic.py", line 2762, in run_command
    cmd = subprocess.Popen(args, **kwargs)
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
    raise child_exception

fatal: [usa0300lv1405]: FAILED! => {
    "changed": false, 
    "cmd": "/usr/sbin/usermod -p VALUE_SPECIFIED_IN_NO_LOG_PARAMETER root", 
    "invocation": {
        "module_args": {
            "append": false, 
            "comment": null, 
            "createhome": true, 
            "expires": null, 
            "force": false, 
            "generate_ssh_key": null, 
            "group": null, 
            "groups": null, 
            "home": null, 
            "local": null, 
            "login_class": null, 
            "move_home": false, 
            "name": "root", 
            "non_unique": false, 
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "remove": false, 
            "seuser": null, 
            "shell": null, 
            "skeleton": null, 
            "ssh_key_bits": 0, 
            "ssh_key_comment": "ansible-generated on usa0300lv1405", 
            "ssh_key_file": null, 
            "ssh_key_passphrase": null, 
            "ssh_key_type": "rsa", 
            "state": "present", 
            "system": false, 
            "uid": null, 
            "update_password": "always"
        }
    }, 
    "msg": "[Errno 13] Permission denied", 
    "rc": 13
}
	to retry, use: --limit @/Ansible_project/change-root-password1.retry

PLAY RECAP *********************************************************************
usa0300lv1405              : ok=1    changed=0    unreachable=0    failed=1   




On Sun, Jul 22, 2018 at 12:04 AM, Deepan M <deepan...@gmail.com> wrote:
Not aware where I need to add -vvvv in Jenkins tool?? Need to add as extra var?

Thanks,
Deepan


On Sat, Jul 21, 2018, 11:57 PM Kai Stian Olstad <ansible-project+list@olstad.com> wrote:
On 21.07.2018 20:02, Deepan M wrote:
> Hi,
>
> If i run like below from terminal, then its working perfect but when i
> try
> from jenkins, its failing.
>
>
> #ansible-playbook change-root-password1.yml

And that is why you need to run it with -vvvv in Jenkins to possible see
what is happening.
Playing a guessing game on what it could be is not very futile.

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

Dan Linder

unread,
Jul 22, 2018, 4:59:22 PM7/22/18
to Ansible Project
Since your ansible.cfg 'become_ask_pass = True', are you providing the sudo password on the command line for Jenkins to pass to ansible-playbook?

Kai Stian Olstad

unread,
Jul 23, 2018, 4:33:40 AM7/23/18
to ansible...@googlegroups.com
On 22.07.2018 12:22, Deepan M wrote:
> Hi,
>
>
> Please find below -vvvv output and let to know how to fix this issue.

You should have just posted plain text with long line breaking to off.
This is very difficult to write answer on.


> Building in workspace
> /opt/hcl/support/unix/l5c9nf32/.jenkins/workspace/root_reset_pass[root_rese=
> t_pass]
> $ /usr/bin/ansible-playbook /Ansible_project/change-root-password1.yml
> -i /Ansible_project/inventory -f 100 -e ******** -e
> ansible_user=3Dq5c9nf32 -vvvvansible-playbook 2.4.2.0 config file =3D
> /etc/ansible/ansible.cfg configured module search path =3D

ansible-playbook is picking up /etc/ansible/ansible.cfg and I guess that
the ansible.cfg you have edited is in /Ansible_project

If this assumption is right you need to change the current woring
directory i Jenkins to be /Ansible_project since ansible-playbook picks
up ansible.cfg in cwd.

--
Kai Stian Olstad

Deepan M

unread,
Jul 24, 2018, 3:21:59 PM7/24/18
to Ansible Project
Thanks Kai for your suggestion, its working perfect. in Jenkins I dont find the way to change directory, however default file is picking it up.

Thanks all for giving your supports.


 ansible --version
[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting

ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/q5c9nf32/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]


Started by user deepan
Building in workspace /opt/hcl/support/unix/l5c9nf32/.jenkins/workspace/root_reset_pass
[root_reset_pass] $ /usr/bin/ansible-playbook /Ansible_project/change-root-password1.yml -i /Ansible_project/inventory -f 100 -e ******** -e ansible_user=q5c9nf32
[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting

/usr/lib64/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal.
  passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
SUDO password: 
PLAY [xerox] *******************************************************************

TASK [Gathering Facts] *********************************************************
ok: [usa7061lv1771]

TASK [Change root password] ****************************************************
changed: [usa7061lv1771]

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

Finished: SUCCESS


Regards,
Deepan M

Jobin A T. A T.

unread,
Jul 31, 2018, 4:32:21 AM7/31/18
to ansible...@googlegroups.com
hi 
check this one
  - name: changing root password
user:
  name: "root"   ## Should not have "-"
  password: "$6$rounds=656000$XCYDmKM2Wh6LkAkf$2t/9L0OP4yJgy3wukrahPAM1qZG.SFNoe3eR53EqTq1t6.X.9YL78PJ2uje6dAp1Xxt8UqDe.kqj2/9F7bsvM/"


i generated the the password hash using the python code 

python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/48158b06-4bc1-4eda-9a76-396b0c28bfd8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--

​​
Jobin A T

Jr. Consultant - Technical Services
m: +91  8606784823

a:
ipsr solutions ltd.IPSR IT Tower, Illom Lane,Palliam Road,Cochin-South
w: 

​​​​​​INDIA: Trivandrum|Kottayam|Kochi|Calicut|Bangalore
|CyberPark
UK:​​London

https://www.facebook.com/ipsrsolutions    

Dan Linder

unread,
Aug 2, 2018, 10:59:12 PM8/2/18
to Ansible Project
To save the call to the external Python command to encrypt the password, you can use the Jinja2 "password_hash" documented here:


So your example could look like this:

    - name: changing root password
user:
        name: "root"
        password: "{{ root_password | password_hash('sha512') }}"

Where "root_password" is a variable set earlier (hopefully stored as an Ansible vaulted variable).

The only drawback here is that the hashed password will be the same on all systems.  Use a "salted hash" [Note 1] so they are not easily noticeable as identical to the casual observer:

        password: "{{ root_password | password_hash('sha512', 65534|random(seed=inventory_hostname)|string) }}"

This will use the hostname as a consistent seed to the random function, then generate a number from 0..65534, finally turning that into a string for the password_hash funciton to use.

Reply all
Reply to author
Forward
0 new messages