# become or sudo

**URL:** <https://forum.ansible.com/t/become-or-sudo/28716>\
**Category:** Ansible Project\
**Created:** [October 4, 2018, 6:54am UTC](https://forum.ansible.com/t/become-or-sudo/28716 "2018-10-04T06:54:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajendra.rawat17](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Post date:** [October 4, 2018, 6:54am UTC](https://forum.ansible.com/t/become-or-sudo/28716/1 "2018-10-04T06:54:25Z")

</div>

Hi All,

I am facing issue while installing httpd into remote server from ansible control server.

I have a control machine and a webserver machine.  
My playbook is given below

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 4, 2018, 7:43am UTC](https://forum.ansible.com/t/become-or-sudo/28716/2 "2018-10-04T07:43:54Z")

</div>

The OS report that you don't have the permission, how does the you entry in sudoers look like?  
Ansible need unrestricted sudo access to work[1].

[1] [https://docs.ansible.com/ansible/latest/user\_guide/become.html#can-t-limit-escalation-to-certain-commands](https://docs.ansible.com/ansible/latest/user_guide/become.html#can-t-limit-escalation-to-certain-commands)

---

<div class="post-metadata">

**Author:** ![rajendra.rawat17](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Post date:** [October 4, 2018, 7:55am UTC](https://forum.ansible.com/t/become-or-sudo/28716/3 "2018-10-04T07:55:57Z")

</div>

Hi Kai,

I have assigned wheel group to the user “rajrawat”

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 4, 2018, 8:27am UTC](https://forum.ansible.com/t/become-or-sudo/28716/4 "2018-10-04T08:27:44Z")

</div>

The next step would be to run ansible-playbook with -vvvv and see if that gives any clues.

---

<div class="post-metadata">

**Author:** ![rajendra.rawat17](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Post date:** [October 4, 2018, 9:47am UTC](https://forum.ansible.com/t/become-or-sudo/28716/5 "2018-10-04T09:47:14Z")

</div>

Hi Kai,

I have ran the playbook with -vvvv option.

Output is as below .

ansible-playbook 2.6.4  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/scratch/rajrawat/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible-playbook  
python version = 2.7.5 (default, May 8 2014, 17:35:19) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)]  
Using /etc/ansible/ansible.cfg as config file  
SUDO password:  
setting up inventory plugins  
Parsed /etc/ansible/hosts inventory source with ini plugin  
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc

PLAYBOOK: userTest.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
1 plays in userTest.yml

PLAY [[xyz.com](http://xyz.com)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /scratch/app/product/ansible/secretTest/userTest.yml:2  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘echo ~rajrawat && sleep 0’”’“‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘/scratch/rajrawat\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: Applying options for _\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket “/scratch/rajrawat/.ansible/cp/3af502ab58” does not exist\r\ndebug2: ssh\_connect: needpriv 0\r\ndebug1: Connecting to [xyz.com](http://xyz.com) [10.184.157.255] 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\ndebug3: Incorrect RSA1 identifier\r\ndebug3: Could not load “/scratch/rajrawat/.ssh/id\_rsa” as a RSA1 public key\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_rsa type 1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_rsa-cert type -1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_dsa type -1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_dsa-cert type -1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_ecdsa type -1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_ecdsa-cert type -1\r\ndebug1: identity file /scratch/rajrawat/.ssh/id\_ed25519 type -1\r\ndebug1: identity file /scratch/rajrawat/.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 OpenSSH\_6.6.1\r\ndebug1: match: OpenSSH\_6.6.1 pat OpenSSH\_6.6.1_ compat 0x04000000\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug3: load\_hostkeys: loading entries for host “[xyz.com](http://xyz.com)” from file “/scratch/rajrawat/.ssh/known\_hosts”\r\ndebug3: load\_hostkeys: found key type ECDSA in file /scratch/rajrawat/.ssh/known\_hosts:7\r\ndebug3: load\_hostkeys: loaded 1 keys\r\ndebug3: order\_hostkeyalgs: prefer hostkeyalgs: [ecdsa-sha2-nistp256-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp256-cert-v01@openssh.com),[ecdsa-sha2-nistp384-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp384-cert-v01@openssh.com),[ecdsa-sha2-nistp521-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp521-cert-v01@openssh.com),ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug1: SSH2\_MSG\_KEXINIT sent\r\ndebug1: SSH2\_MSG\_KEXINIT received\r\ndebug2: kex\_parse\_kexinit: [curve25519-sha256@libssh.org](mailto: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](mailto:ecdsa-sha2-nistp256-cert-v01@openssh.com),[ecdsa-sha2-nistp384-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp384-cert-v01@openssh.com),[ecdsa-sha2-nistp521-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp521-cert-v01@openssh.com),ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[ssh-ed25519-cert-v01@openssh.com](mailto:ssh-ed25519-cert-v01@openssh.com),[ssh-rsa-cert-v01@openssh.com](mailto:ssh-rsa-cert-v01@openssh.com),[ssh-dss-cert-v01@openssh.com](mailto:ssh-dss-cert-v01@openssh.com),[ssh-rsa-cert-v00@openssh.com](mailto:ssh-rsa-cert-v00@openssh.com),[ssh-dss-cert-v00@openssh.com](mailto:ssh-dss-cert-v00@openssh.com),ssh-ed25519,ssh-rsa,ssh-dss\r\ndebug2: kex\_parse\_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),[chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[rijndael-cbc@lysator.liu.se](mailto:rijndael-cbc@lysator.liu.se)\r\ndebug2: kex\_parse\_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),[chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[rijndael-cbc@lysator.liu.se](mailto:rijndael-cbc@lysator.liu.se)\r\ndebug2: kex\_parse\_kexinit: [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-ripemd160-etm@openssh.com](mailto:hmac-ripemd160-etm@openssh.com),[hmac-sha1-96-etm@openssh.com](mailto:hmac-sha1-96-etm@openssh.com),[hmac-md5-96-etm@openssh.com](mailto:hmac-md5-96-etm@openssh.com),hmac-md5,hmac-sha1,[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[hmac-ripemd160@openssh.com](mailto:hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: kex\_parse\_kexinit: [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-ripemd160-etm@openssh.com](mailto:hmac-ripemd160-etm@openssh.com),[hmac-sha1-96-etm@openssh.com](mailto:hmac-sha1-96-etm@openssh.com),[hmac-md5-96-etm@openssh.com](mailto:hmac-md5-96-etm@openssh.com),hmac-md5,hmac-sha1,[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[hmac-ripemd160@openssh.com](mailto:hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: kex\_parse\_kexinit: [zlib@openssh.com](mailto:zlib@openssh.com),zlib,none\r\ndebug2: kex\_parse\_kexinit: [zlib@openssh.com](mailto:zlib@openssh.com),zlib,none\r\ndebug2: kex\_parse\_kexinit: \r\ndebug2: kex\_parse\_kexinit: \r\ndebug2: kex\_parse\_kexinit: first\_kex\_follows 0 \r\ndebug2: kex\_parse\_kexinit: reserved 0 \r\ndebug2: kex\_parse\_kexinit: [curve25519-sha256@libssh.org](mailto: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: ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: kex\_parse\_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),[chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[rijndael-cbc@lysator.liu.se](mailto:rijndael-cbc@lysator.liu.se)\r\ndebug2: kex\_parse\_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),[chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[rijndael-cbc@lysator.liu.se](mailto:rijndael-cbc@lysator.liu.se)\r\ndebug2: kex\_parse\_kexinit: [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-ripemd160-etm@openssh.com](mailto:hmac-ripemd160-etm@openssh.com),[hmac-sha1-96-etm@openssh.com](mailto:hmac-sha1-96-etm@openssh.com),[hmac-md5-96-etm@openssh.com](mailto:hmac-md5-96-etm@openssh.com),hmac-md5,hmac-sha1,[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[hmac-ripemd160@openssh.com](mailto:hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: kex\_parse\_kexinit: [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-ripemd160-etm@openssh.com](mailto:hmac-ripemd160-etm@openssh.com),[hmac-sha1-96-etm@openssh.com](mailto:hmac-sha1-96-etm@openssh.com),[hmac-md5-96-etm@openssh.com](mailto:hmac-md5-96-etm@openssh.com),hmac-md5,hmac-sha1,[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[hmac-ripemd160@openssh.com](mailto:hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: kex\_parse\_kexinit: none,[zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug2: kex\_parse\_kexinit: none,[zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug2: kex\_parse\_kexinit: \r\ndebug2: kex\_parse\_kexinit: \r\ndebug2: kex\_parse\_kexinit: first\_kex\_follows 0 \r\ndebug2: kex\_parse\_kexinit: reserved 0 \r\ndebug2: mac\_setup: setup [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com)\r\ndebug1: kex: server-\>client aes128-ctr [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com) [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug2: mac\_setup: setup [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com)\r\ndebug1: kex: client-\>server aes128-ctr [hmac-md5-etm@openssh.com](mailto:hmac-md5-etm@openssh.com) [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug1: kex: [curve25519-sha256@libssh.org](mailto:curve25519-sha256@libssh.org) need=16 dh\_need=16\r\ndebug1: kex: [curve25519-sha256@libssh.org](mailto:curve25519-sha256@libssh.org) need=16 dh\_need=16\r\ndebug1: sending SSH2\_MSG\_KEX\_ECDH\_INIT\r\ndebug1: expecting SSH2\_MSG\_KEX\_ECDH\_REPLY\r\ndebug1: Server host key: ECDSA b4:7e:ed:f2:87:f2:d5:05:70:a3:31:29:75:2d:c5:df\r\ndebug3: load\_hostkeys: loading entries for host “[xyz.com](http://xyz.com)” from file “/scratch/rajrawat/.ssh/known\_hosts”\r\ndebug3: load\_hostkeys: found key type ECDSA in file /scratch/rajrawat/.ssh/known\_hosts:7\r\ndebug3: load\_hostkeys: loaded 1 keys\r\ndebug3: load\_hostkeys: loading entries for host “10.184.157.255” from file “/scratch/rajrawat/.ssh/known\_hosts”\r\ndebug3: load\_hostkeys: found key type ECDSA in file /scratch/rajrawat/.ssh/known\_hosts:7\r\ndebug3: load\_hostkeys: loaded 1 keys\r\ndebug1: Host '[xyz.com](http://xyz.com)' is known and matches the ECDSA host key.\r\ndebug1: Found key in /scratch/rajrawat/.ssh/known\_hosts:7\r\ndebug1: ssh\_ecdsa\_verify: signature correct\r\ndebug2: kex\_derive\_keys\r\ndebug2: set\_newkeys: mode 1\r\ndebug1: SSH2\_MSG\_NEWKEYS sent\r\ndebug1: expecting SSH2\_MSG\_NEWKEYS\r\ndebug2: set\_newkeys: mode 0\r\ndebug1: SSH2\_MSG\_NEWKEYS received\r\ndebug1: Roaming not allowed by server\r\ndebug1: SSH2\_MSG\_SERVICE\_REQUEST sent\r\ndebug2: service\_accept: ssh-userauth\r\ndebug1: SSH2\_MSG\_SERVICE\_ACCEPT received\r\ndebug2: key: /scratch/rajrawat/.ssh/id\_rsa (0x55d38da2dc90),\r\ndebug2: key: /scratch/rajrawat/.ssh/id\_dsa ((nil)),\r\ndebug2: key: /scratch/rajrawat/.ssh/id\_ecdsa ((nil)),\r\ndebug2: key: /scratch/rajrawat/.ssh/id\_ed25519 ((nil)),\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-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: /scratch/rajrawat/.ssh/id\_rsa\r\ndebug3: send\_pubkey\_test\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug1: Server accepts key: pkalg ssh-rsa blen 279\r\ndebug2: input\_userauth\_pk\_ok: fp 13:e7:56:64:85:4c:68:74:a9:3f:04:bd:25:f0:62:2f\r\ndebug3: sign\_and\_send\_pubkey: RSA 13:e7:56:64:85:4c:68:74:a9:3f:04:bd:25:f0:62:2f\r\ndebug1: key\_parse\_private2: missing begin marker\r\ndebug1: read PEM private key done: type RSA\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to [xyz.com](http://xyz.com) ([10.184.157.255]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver\_listen: temporary control path /scratch/rajrawat/.ansible/cp/3af502ab58.dQoDFwsAfpI9tSKF\r\ndebug2: fd 5 setting O\_NONBLOCK\r\ndebug3: fd 5 is O\_NONBLOCK\r\ndebug3: fd 5 is O\_NONBLOCK\r\ndebug1: channel 0: new [/scratch/rajrawat/.ansible/cp/3af502ab58]\r\ndebug3: muxserver\_listen: mux listener channel 0 fd 5\r\ndebug2: fd 3 setting TCP\_NODELAY\r\ndebug3: packet\_set\_tos: set IP\_TOS 0x08\r\ndebug1: control\_persist\_detach: backgrounding master process\r\ndebug2: control\_persist\_detach: background process is 1723\r\ndebug2: fd 5 setting O\_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug2: set\_control\_persist\_exit\_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 6 setting O\_NONBLOCK\r\ndebug3: fd 6 is O\_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel\_post\_mux\_listener: new mux channel 1 fd 6\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 = 1730\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug3: mux\_master\_read\_cb: channel 1 packet type 0x10000002 len 98\r\ndebug2: process\_mux\_new\_session: channel 1: request tty 0, X 1, agent 0, subsys 0, term “xterm”, cmd “/bin/sh -c 'echo ~rajrawat && sleep 0'”, env 1\r\ndebug3: process\_mux\_new\_session: got fds stdin 7, stdout 8, stderr 9\r\ndebug2: fd 8 setting O\_NONBLOCK\r\ndebug2: fd 9 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\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\ndebug1: Sending command: /bin/sh -c 'echo ~rajrawat && sleep 0'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: mux\_session\_confirm: sending success reply\r\ndebug2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug2: channel\_input\_status\_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug1: client\_input\_channel\_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux\_exit\_message: channel 2: exit message, exitval 0\r\ndebug1: client\_input\_channel\_req: channel 2 rtype [eow@openssh.com](mailto:eow@openssh.com) reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close\_read\r\ndebug2: channel 2: input open → closed\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open → drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close\_write\r\ndebug2: channel 2: output drain → closed\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux\_master\_session\_cleanup\_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open → drain\r\ndebug2: channel 1: close\_read\r\ndebug2: channel 1: input open → closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close\_write\r\ndebug2: channel 1: output drain → closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux\_master\_control\_cleanup\_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n\r\ndebug2: set\_control\_persist\_exit\_time: schedule exit in 60 seconds\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045`” && echo ansible-tmp-1538642299.22-41934610843045=“`echo /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045`” ) && sleep 0’“'”‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘ansible-tmp-1538642299.22-41934610843045=/scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py  
\<[xyz.com](http://xyz.com)\> PUT /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpxDPF3\_ TO /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/setup.py  
\<[xyz.com](http://xyz.com)\> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 ‘[[xyz.com](http://xyz.com)]’  
\<[xyz.com](http://xyz.com)\> (0, ‘sftp\> put /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpxDPF3\_ /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/setup.py\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[hardlink@openssh.com](mailto:hardlink@openssh.com)” revision 1\r\ndebug2: Server supports extension “[fsync@openssh.com](mailto:fsync@openssh.com)” revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH\_FXP\_REALPATH . → /scratch/rajrawat size 0\r\ndebug3: Looking up /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpxDPF3\_\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:/scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/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:32768\r\ndebug3: Sent message SSH2\_FXP\_WRITE I:10 O:196608 S:12999\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 32768 bytes at 163840\r\ndebug3: SSH2\_FXP\_STATUS 0\r\ndebug3: In write loop, ack for 10 12999 bytes at 196608\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’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘chmod u+x /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/ /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/setup.py && sleep 0’”’“‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘’, 'OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 -tt [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’"’/usr/bin/python /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/setup.py && sleep 0’“'”‘’  
\<[xyz.com](http://xyz.com)\> (0, '\r\n{“invocation”: {“module\_args”: {“filter”: "_”, “gather\_subset”: [“all”], “fact\_path”: “/etc/ansible/facts.d”, “gather\_timeout”: 10}}, “ansible\_facts”: {“ansible\_userspace\_architecture”: “x86\_64”, “ansible\_product\_serial”: “NA”, “ansible\_form\_factor”: “Other”, “ansible\_user\_gecos”: “”, “ansible\_distribution\_file\_parsed”: true, “ansible\_fips”: false, “ansible\_service\_mgr”: “systemd”, “ansible\_user\_id”: “rajrawat”, “ansible\_selinux\_python\_present”: true, “ansible\_userspace\_bits”: “64”, “ansible\_ssh\_host\_key\_rsa\_public”: “AAAAB3NzaC1yc2EAAAADAQABAAABAQDMNLNRqw/ALK5iITBuyQf3hdlEXFSalBeLXJj6pAEdrO+2k+gASfCtE02VjgtxfhZ9ecbX0oNpgbr+ORDIfPqh1W2dm4RXJUsHWFmsMcyA4DIu88ErN00DarjCAiOABl5z+HoyoZpQAORDD+Kc3m5VNwFUUZ8ePM0VOywYjF/y4Cif9+rEa7nfEQ4Ah3L0Isr+XzbPFBpWQHXNm2SN7peHVB2Dz7+27z5Cs2gGZq/uP5GAuZWI9e3qLO41367wEeOxhb5RMKEg97ySy4t0JAJQ4BXUaxPsCQEiL4KnGMKM6+Exa0Ftxe7Do4twOVQ3inWn1WpNNGcdFqmmmEnrMcLb”, “gather\_subset”: [“all”], “ansible\_real\_user\_id”: 10102, “ansible\_architecture”: “x86\_64”, “ansible\_local”: {}, “ansible\_distribution\_version”: “7.3”, “ansible\_domain”: “.com”, “ansible\_distribution\_file\_path”: “/etc/oracle-release”, “ansible\_user\_shell”: “/bin/bash”, “ansible\_virtualization\_type”: “xen”, “ansible\_ssh\_host\_key\_ed25519\_public”: “AAAAC3NzaC1lZDI1NTE5AAAAIFG2Rl3lFj/nrEwXlH2RiGxgRxaoR3y7t9d60Q9hRTRS”, “ansible\_processor\_cores”: 4, “ansible\_virtualization\_role”: “guest”, “ansible\_distribution\_file\_variety”: “OracleLinux”, “ansible\_dns”: {“nameservers”: [“10.121.31.25”, “#Preferred”, “PE&O”, “India”, “primary”, “10.121.30.45”, “#Secondary”, “PE&O”, “India”, “Secondary”, “10.176.48.6”, “#”, “Tertiary”, “PE&O”, “India”, “DR”, “Hyderbad”, “206.223.27.1”, “#Corp”, “Anycast”], “search”: [“.com”, “[us.com](http://us.com)”, “.com”, “.com”, “[idc.com](http://idc.com)”], “options”: {“attempts”: “2”, “timeout”: “1”}}, “ansible\_effective\_group\_id”: 59968, “ansible\_is\_chroot”: false, “ansible\_docker0”: {“macaddress”: “02:42:19:f1:25:ce”, “features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “on”, “rx\_all”: “off [fixed]”, “highdma”: “on”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “on [fixed]”, “tx\_tcp\_ecn\_segmentation”: “on”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “on”, “tx\_ipip\_segmentation”: “on”, “tx\_checksumming”: “on”, “vlan\_challenged”: “off [fixed]”, “hw\_switch\_offload”: “off [fixed]”, “loopback”: “off [fixed]”, “fcoe\_mtu”: “off [fixed]”, “tx\_checksum\_sctp”: “off [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “on”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on”, “rx\_checksumming”: “off [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “on [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “on”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_vlan\_offload”: “on”, “tx\_nocache\_copy”: “off”, “udp\_fragmentation\_offload”: “on”, “scatter\_gather”: “on”, “tx\_sit\_segmentation”: “on”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on”, “tx\_fcoe\_segmentation”: “on”, “rx\_vlan\_filter”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “on”}, “interfaces”: , “id”: “8000.024219f125ce”, “mtu”: 1500, “device”: “docker0”, “promisc”: false, “stp”: false, “ipv4”: {“broadcast”: “global”, “netmask”: “255.255.0.0”, “network”: “172.17.0.0”, “address”: “172.17.0.1”}, “active”: false, “timestamping”: [“rx\_software”, “software”], “type”: “bridge”, “hw\_timestamp\_filters”: }, “ansible\_bios\_version”: “4.1.3OVM”, “ansible\_processor”: [“0”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz”, “1”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz”, “2”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz”, “3”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz”], “ansible\_date\_time”: {“weekday\_number”: “4”, “iso8601\_basic\_short”: “20181004T013821”, “tz”: “PDT”, “weeknumber”: “40”, “hour”: “01”, “year”: “2018”, “minute”: “38”, “tz\_offset”: “-0700”, “month”: “10”, “epoch”: “1538642301”, “iso8601\_micro”: “2018-10-04T08:38:21.395762Z”, “weekday”: “Thursday”, “time”: “01:38:21”, “date”: “2018-10-04”, “iso8601”: “2018-10-04T08:38:21Z”, “day”: “04”, “iso8601\_basic”: “20181004T013821395664”, “second”: “21”}, “ansible\_lo”: {“features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “on [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “on [fixed]”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “on [fixed]”, “tx\_tcp\_ecn\_segmentation”: “on”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “off [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_checksumming”: “on”, “vlan\_challenged”: “on [fixed]”, “hw\_switch\_offload”: “off [fixed]”, “loopback”: “on [fixed]”, “fcoe\_mtu”: “off [fixed]”, “tx\_checksum\_sctp”: “on [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on [fixed]”, “rx\_checksumming”: “on [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “on [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_vlan\_offload”: “off [fixed]”, “tx\_nocache\_copy”: “off [fixed]”, “udp\_fragmentation\_offload”: “on”, “scatter\_gather”: “on”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on [fixed]”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “off [fixed]”}, “hw\_timestamp\_filters”: , “mtu”: 65536, “device”: “lo”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “host”, “netmask”: “255.0.0.0”, “network”: “127.0.0.0”, “address”: “127.0.0.1”}, “ipv6”: [{“scope”: “host”, “prefix”: “128”, “address”: “::1”}], “active”: true, “type”: “loopback”}, “ansible\_memtotal\_mb”: 14915, “ansible\_ssh\_host\_key\_ecdsa\_public”: “AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBF0Vuw6/ullyiTdTHwiOLdPUQZbaqBSML/NqE8c0cwgTjL3roO7h8z58BXm16PHLhs/qVhms6zT32qetYB+Fqw=”, “ansible\_device\_links”: {“masters”: {}, “labels”: {“xvda5”: [“docker”]}, “ids”: {}, “uuids”: {“xvda5”: [“d6784705-7bc2-4d17-9aa9-301e6b3b05ea”], “xvda6”: [“05a976cb-f921-43c1-979e-75f6952cab7b”], “xvda1”: [“4eb964c9-4f14-4445-b998-f98edc8d1fa7”], “xvda2”: [“dd2ac417-d452-48c9-a776-ac0e288b7ac0”], “xvda3”: [“2ef9af08-500a-449b-8640-e3f2a2ab5182”]}}, “ansible\_default\_ipv4”: {“macaddress”: “00:21:f6:46:17:5d”, “network”: “10.184.156.0”, “mtu”: 1500, “broadcast”: “10.184.159.255”, “alias”: “eth0”, “netmask”: “255.255.252.0”, “address”: “10.184.157.255”, “interface”: “eth0”, “type”: “ether”, “gateway”: “10.184.156.1”}, “ansible\_swapfree\_mb”: 15616, “ansible\_default\_ipv6”: {}, “ansible\_distribution\_release”: “NA”, “ansible\_system\_vendor”: “Xen”, “ansible\_os\_family”: “RedHat”, “ansible\_cmdline”: {“LANG”: “en\_US.UTF-8”, “BOOT\_IMAGE”: “/vmlinuz-4.1.12-124.19.5.el7uek.x86\_64”, “ro”: true, “root”: “UUID=2ef9af08-500a-449b-8640-e3f2a2ab5182”, “crashkernel”: “auto”}, “ansible\_effective\_user\_id”: 10102, “ansible\_user\_gid”: 59968, “ansible\_selinux”: {“status”: “disabled”}, “ansible\_product\_version”: “4.1.3OVM”, “ansible\_apparmor”: {“status”: “disabled”}, “ansible\_distribution\_file\_search\_string”: “Oracle Linux”, “ansible\_product\_uuid”: “NA”, “ansible\_system”: “Linux”, “ansible\_pkg\_mgr”: “yum”, “ansible\_memfree\_mb”: 5524, “ansible\_devices”: {“xvda”: {“scheduler\_mode”: “”, “rotational”: “0”, “vendor”: null, “sectors”: “503316480”, “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”: {“xvda4”: {“sectorsize”: 512, “uuid”: null, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: }, “sectors”: “2”, “start”: “442499072”, “holders”: , “size”: “1.00 KB”}, “xvda5”: {“sectorsize”: 512, “uuid”: “d6784705-7bc2-4d17-9aa9-301e6b3b05ea”, “links”: {“masters”: , “labels”: [“docker”], “ids”: , “uuids”: [“d6784705-7bc2-4d17-9aa9-301e6b3b05ea”]}, “sectors”: “50331648”, “start”: “442501120”, “holders”: , “size”: “24.00 GB”}, “xvda6”: {“sectorsize”: 512, “uuid”: “05a976cb-f921-43c1-979e-75f6952cab7b”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: [“05a976cb-f921-43c1-979e-75f6952cab7b”]}, “sectors”: “10481664”, “start”: “492834816”, “holders”: , “size”: “5.00 GB”}, “xvda1”: {“sectorsize”: 512, “uuid”: “4eb964c9-4f14-4445-b998-f98edc8d1fa7”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: [“4eb964c9-4f14-4445-b998-f98edc8d1fa7”]}, “sectors”: “2097152”, “start”: “2048”, “holders”: , “size”: “1.00 GB”}, “xvda2”: {“sectorsize”: 512, “uuid”: “dd2ac417-d452-48c9-a776-ac0e288b7ac0”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: [“dd2ac417-d452-48c9-a776-ac0e288b7ac0”]}, “sectors”: “15599616”, “start”: “2099200”, “holders”: , “size”: “7.44 GB”}, “xvda3”: {“sectorsize”: 512, “uuid”: “2ef9af08-500a-449b-8640-e3f2a2ab5182”, “links”: {“masters”: , “labels”: , “ids”: , “uuids”: [“2ef9af08-500a-449b-8640-e3f2a2ab5182”]}, “sectors”: “424800256”, “start”: “17698816”, “holders”: , “size”: “202.56 GB”}}, “holders”: , “size”: “240.00 GB”}}, “ansible\_user\_uid”: 10102, “ansible\_memory\_mb”: {“real”: {“total”: 14915, “used”: 9391, “free”: 5524}, “swap”: {“cached”: 0, “total”: 15616, “free”: 15616, “used”: 0}, “nocache”: {“used”: 2858, “free”: 12057}}, “ansible\_distribution”: “OracleLinux”, “ansible\_user\_dir”: “/scratch/rajrawat”, “ansible\_env”: {“LANG”: “en\_US.UTF-8”, “TERM”: “xterm”, “SHELL”: “/bin/bash”, “XDG\_RUNTIME\_DIR”: “/run/user/10102”, “SHLVL”: “2”, “SSH\_TTY”: “/dev/pts/1”, “HOME”: “/scratch/rajrawat”, “SSH\_CLIENT”: “10.184.157.249 22200 22”, “PWD”: “/scratch/rajrawat”, “LOGNAME”: “rajrawat”, “USER”: “rajrawat”, “MAIL”: “/var/mail/rajrawat”, “PATH”: “/usr/local/bin:/usr/bin”, “SSH\_CONNECTION”: “10.184.157.249 22200 10.184.157.255 22”, “XDG\_SESSION\_ID”: “3486”, “\_”: “/usr/bin/python”}, “ansible\_distribution\_major\_version”: “7”, “module\_setup”: true, “ansible\_processor\_count”: 4, “ansible\_hostname”: “xyz”, “ansible\_processor\_vcpus”: 4, “ansible\_swaptotal\_mb”: 15616, “ansible\_lsb”: {“release”: “7.3”, “major\_release”: “7”, “codename”: “n/a”, “id”: “OracleServer”, “description”: “Oracle Linux Server release 7.3”}, “ansible\_real\_group\_id”: 59968, “ansible\_bios\_date”: “05/02/2017”, “ansible\_all\_ipv6\_addresses”: [“fe80::221:f6ff:fe46:175d”], “ansible\_interfaces”: [“lo”, “docker0”, “eth0”], “ansible\_uptime\_seconds”: 507561, “ansible\_machine\_id”: “11d62f8f5dbb446c80b8623829e76ec8”, “ansible\_kernel”: “4.1.12-124.19.5.el7uek.x86\_64”, “ansible\_iscsi\_iqn”: “[iqn.1988-12.com.xyz](http://iqn.1988-12.com.xyz)”, “ansible\_system\_capabilities\_enforced”: “True”, “ansible\_python”: {“executable”: “/usr/bin/python”, “version”: {“micro”: 5, “major”: 2, “releaselevel”: “final”, “serial”: 0, “minor”: 7}, “type”: “CPython”, “has\_sslcontext”: true, “version\_info”: [2, 7, 5, “final”, 0]}, “ansible\_processor\_threads\_per\_core”: 1, “ansible\_fqdn”: “[xyz.com](http://xyz.com)”, “ansible\_mounts”: [{“block\_used”: 8812496, “uuid”: “2ef9af08-500a-449b-8640-e3f2a2ab5182”, “size\_total”: 213949091840, “block\_total”: 52233665, “mount”: “/”, “block\_available”: 43421169, “size\_available”: 177853108224, “fstype”: “ext4”, “inode\_total”: 13279232, “options”: “rw,relatime,nobarrier,data=ordered”, “device”: “/dev/xvda3”, “inode\_used”: 238512, “block\_size”: 4096, “inode\_available”: 13040720}, {“block\_used”: 68897, “uuid”: “d6784705-7bc2-4d17-9aa9-301e6b3b05ea”, “size\_total”: 25769803776, “block\_total”: 6291456, “mount”: “/var/lib/docker”, “block\_available”: 6222559, “size\_available”: 25487601664, “fstype”: “btrfs”, “inode\_total”: 0, “options”: “rw,relatime,ssd,space\_cache,subvolid=257,subvol=/varlibdocker,bind”, “device”: “/dev/xvda5”, “inode\_used”: 0, “block\_size”: 4096, “inode\_available”: 0}, {“block\_used”: 271171, “uuid”: “05a976cb-f921-43c1-979e-75f6952cab7b”, “size\_total”: 5148114944, “block\_total”: 1256864, “mount”: “/oem”, “block\_available”: 985693, “size\_available”: 4037398528, “fstype”: “ext4”, “inode\_total”: 327680, “options”: “rw,relatime,nobarrier,data=ordered”, “device”: “/dev/xvda6”, “inode\_used”: 8978, “block\_size”: 4096, “inode\_available”: 318702}, {“block\_used”: 58839, “uuid”: “4eb964c9-4f14-4445-b998-f98edc8d1fa7”, “size\_total”: 1023303680, “block\_total”: 249830, “mount”: “/boot”, “block\_available”: 190991, “size\_available”: 782299136, “fstype”: “ext3”, “inode\_total”: 65536, “options”: “rw,relatime,errors=continue,user\_xattr,acl,barrier=0,data=ordered”, “device”: “/dev/xvda1”, “inode\_used”: 353, “block\_size”: 4096, “inode\_available”: 65183}, {“block\_used”: 137490206, “uuid”: “N/A”, “size\_total”: 5497499877376, “block\_total”: 167770382, “mount”: “/usr/local/remote/packages”, “block\_available”: 30280176, “size\_available”: 992220807168, “fstype”: “nfs”, “inode\_total”: 1964044895, “options”: “ro,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,acregmin=1200,acregmax=1200,acdirmin=1200,acdirmax=1200,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.184.135.151,mountvers=3,mountport=46806,mountproto=tcp,local\_lock=none,addr=10.184.135.151”, “device”: “blrnas403…com:/export/local/x86\_64/redhat/70\_prod/packages”, “inode\_used”: 26113636, “block\_size”: 32768, “inode\_available”: 1937931259}, {“block\_used”: 68897, “uuid”: “d6784705-7bc2-4d17-9aa9-301e6b3b05ea”, “size\_total”: 25769803776, “block\_total”: 6291456, “mount”: “/var/lib/docker/btrfs”, “block\_available”: 6222559, “size\_available”: 25487601664, “fstype”: “btrfs”, “inode\_total”: 0, “options”: “rw,relatime,ssd,space\_cache,subvolid=257,subvol=/varlibdocker/btrfs,bind”, “device”: “/dev/xvda5”, “inode\_used”: 0, “block\_size”: 4096, “inode\_available”: 0}], “ansible\_eth0”: {“macaddress”: “00:21:f6:46:17:5d”, “features”: {“tx\_checksum\_ipv4”: “on [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “on”, “tx\_scatter\_gather\_fraglist”: “off [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “off [fixed]”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “off [fixed]”, “tx\_tcp\_ecn\_segmentation”: “off [fixed]”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “on [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_checksumming”: “on”, “vlan\_challenged”: “off [fixed]”, “hw\_switch\_offload”: “off [fixed]”, “loopback”: “off [fixed]”, “fcoe\_mtu”: “off [fixed]”, “tx\_checksum\_sctp”: “off [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on”, “rx\_checksumming”: “on [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “off [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_vlan\_offload”: “off [fixed]”, “tx\_nocache\_copy”: “off”, “udp\_fragmentation\_offload”: “off [fixed]”, “scatter\_gather”: “on”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “off [fixed]”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “off [fixed]”}, “pciid”: “vif-0”, “module”: “xen\_netfront”, “mtu”: 1500, “device”: “eth0”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “10.184.159.255”, “netmask”: “255.255.252.0”, “network”: “10.184.156.0”, “address”: “10.184.157.255”}, “ipv6”: [{“scope”: “link”, “prefix”: “64”, “address”: “fe80::221:f6ff:fe46:175d”}], “active”: true, “type”: “ether”, “hw\_timestamp\_filters”: }, “ansible\_nodename”: “[xyz.com](http://xyz.com)”, “ansible\_product\_name”: “HVM domU”, “ansible\_machine”: “x86\_64”, “ansible\_system\_capabilities”: [“”], “ansible\_all\_ipv4\_addresses”: [“10.184.157.255”, “172.17.0.1”], “ansible\_python\_version”: “2.7.5”}}\r\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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 [xyz.com](http://xyz.com) closed.\r\n’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘rm -f -r /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642299.22-41934610843045/ \> /dev/null 2\>&1 && sleep 0’”’"‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
ok: [[xyz.com](http://xyz.com)]  
META: ran handlers

TASK [install apache2] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /scratch/app/product/ansible/secretTest/userTest.yml:5  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘echo ~rajrawat && sleep 0’”’“‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘/scratch/rajrawat\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225`” && echo ansible-tmp-1538642301.86-116046872902225=“`echo /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225`” ) && sleep 0’“'”‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘ansible-tmp-1538642301.86-116046872902225=/scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py  
\<[xyz.com](http://xyz.com)\> PUT /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpEXhT9v TO /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/yum.py  
\<[xyz.com](http://xyz.com)\> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 ‘[[xyz.com](http://xyz.com)]’  
\<[xyz.com](http://xyz.com)\> (0, ‘sftp\> put /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpEXhT9v /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/yum.py\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[hardlink@openssh.com](mailto:hardlink@openssh.com)” revision 1\r\ndebug2: Server supports extension “[fsync@openssh.com](mailto:fsync@openssh.com)” revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH\_FXP\_REALPATH . → /scratch/rajrawat size 0\r\ndebug3: Looking up /scratch/rajrawat/.ansible/tmp/ansible-local-16934Tin3j/tmpEXhT9v\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:/scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/yum.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:3625\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 3625 bytes at 98304\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’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘chmod u+x /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/ /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/yum.py && sleep 0’”’“‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 -tt [xyz.com](http://xyz.com) '/bin/sh -c '”‘“‘sudo -H -S -p “[sudo via ansible, key=tntxgmfcxumuvsdzcfoamuanirxthzxa] password: " -u root /bin/sh -c '”’”’“'”‘"’“'”‘“‘echo BECOME-SUCCESS-tntxgmfcxumuvsdzcfoamuanirxthzxa; /usr/bin/python /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/yum.py’”’“'”‘"’“'”‘"’“’ && sleep 0’”‘"’’  
\<[xyz.com](http://xyz.com)\> (1, ‘rajrawat is not allowed to run sudo on xyz. This incident will be reported.\r\n’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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 1\r\nShared connection to [xyz.com](http://xyz.com) closed.\r\n’)  
\<[xyz.com](http://xyz.com)\> ESTABLISH SSH CONNECTION FOR USER: rajrawat  
\<[xyz.com](http://xyz.com)\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=rajrawat -o ConnectTimeout=10 -o ControlPath=/scratch/rajrawat/.ansible/cp/3af502ab58 [xyz.com](http://xyz.com) ‘/bin/sh -c ‘"’“‘rm -f -r /scratch/rajrawat/.ansible/tmp/ansible-tmp-1538642301.86-116046872902225/ \> /dev/null 2\>&1 && sleep 0’”’"‘’  
\<[xyz.com](http://xyz.com)\> (0, ‘’, ‘OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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’)  
fatal: [[xyz.com](http://xyz.com)]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /scratch/rajrawat/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 54: 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 = 1730\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 1\r\nShared connection to [xyz.com](http://xyz.com) closed.\r\n”,  
“module\_stdout”: “rajrawat is not allowed to run sudo on xyz. This incident will be reported.\r\n”,  
“msg”: “MODULE FAILURE”,  
“rc”: 1  
}  
to retry, use: --limit @/scratch/app/product/ansible/secretTest/userTest.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[xyz.com](http://xyz.com) : ok=1 changed=0 unreachable=0 failed=1

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 4, 2018, 10:26am UTC](https://forum.ansible.com/t/become-or-sudo/28716/6 "2018-10-04T10:26:09Z")

</div>

Bassed on the output i still thing something is missing with the sudoers configuration, you need to check logs and configuration.

This will print the groups your user is a member off  
&nbsp;&nbsp;&nbsp;ansible xyz.com -a id

You should also check the auth/secure log in /var/log/ (I think the file is called secure in RHEL realm) it should have some information about why user is denied sudo access.

---

<div class="post-metadata">

**Author:** ![rajendra.rawat17](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Post date:** [October 5, 2018, 6:14am UTC](https://forum.ansible.com/t/become-or-sudo/28716/7 "2018-10-05T06:14:21Z")

</div>

Hi Kai,

Output: ansible [xyz.com](http://xyz.com) -a id

[xyz.com](http://xyz.com) | SUCCESS | rc=0 \>\>  
uid=10102(rajrawat) gid=59968(oinstall) groups=59968(oinstall),10(wheel)

/etc/log/secure file contents:

Oct 4 23:09:18 xyz sshd[12957]: pam\_unix(sshd:session): session opened for user rajrawat by (uid=0)  
Oct 4 23:09:22 xyz sudo: PAM unable to dlopen(/usr/lib/security/pam\_pwquality.so): /usr/lib/security/pam\_pwquality.so: cannot open shared object file: No such file or directory  
Oct 4 23:09:22 xyz sudo: PAM adding faulty module: /usr/lib/security/pam\_pwquality.so

Kindly suggest on what could be the problem.

---

<div class="post-metadata">

**Author:** ![Brad2](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Brad2](https://forum.ansible.com/u/Brad2)\
**Post date:** [October 5, 2018, 9:57am UTC](https://forum.ansible.com/t/become-or-sudo/28716/8 "2018-10-05T09:57:03Z")

</div>

It looks like one of you pam files (most likely system-auth-ac or password-auth-ac) have pam\_pwquality.so in it and that does not seem to be loaded on the server. Check that out.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 6, 2018, 7:20am UTC](https://forum.ansible.com/t/become-or-sudo/28716/9 "2018-10-06T07:20:11Z")

</div>

> Output: ansible xyz.com -a id  
> xyz.com | SUCCESS | rc=0 \>\>  
> uid=10102(rajrawat) gid=59968(oinstall) groups=59968(oinstall),10(wheel)

This also show that you are member of wheel, and that Ansible is running under those membership.

> /etc/log/secure file contents:
> 
> Oct 4 23:09:18 xyz sshd[12957]: pam\_unix(sshd:session): session opened for user rajrawat by (uid=0)  
> Oct 4 23:09:22 xyz sudo: PAM unable to dlopen(/usr/lib/security/pam\_pwquality.so): /usr/lib/security/pam\_pwquality.so: cannot open shared object file: No such file or directory  
> Oct 4 23:09:22 xyz sudo: PAM adding faulty module: /usr/lib/security/pam\_pwquality.so

This indicate to me that you are not running the vanilla distribution but some customization has been done.  
Might it be that some of this customization has broken some part of PAM and/or sudoers?

When you log in and run sudo you are using an interactive shell, but when Ansible is running it is using non-interactive shell this might be and factor if any customization has been done to the server.

> Kindly suggest on what could be the problem.

Apart from the above I don't have any more to contribute since that would be outside of this groups scope.

---

<div class="post-metadata">

**Author:** ![rajendra.rawat17](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Post date:** [October 9, 2018, 12:06pm UTC](https://forum.ansible.com/t/become-or-sudo/28716/10 "2018-10-09T12:06:32Z")

</div>

Thanks Kai for the valuable information you shared with me.
