# ANSIBLE PROBLEM !!!

**URL:** <https://forum.ansible.com/t/ansible-problem/30184>\
**Category:** Ansible Project\
**Created:** [April 25, 2019, 7:30am UTC](https://forum.ansible.com/t/ansible-problem/30184 "2019-04-25T07:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arminm.zira](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@arminm.zira](https://forum.ansible.com/u/arminm.zira)\
**Post date:** [April 25, 2019, 7:30am UTC](https://forum.ansible.com/t/ansible-problem/30184/1 "2019-04-25T07:30:35Z")

</div>

Hy guys.I have a big problem.Actually, i have to install ansible on oracle linux 7, and thats ok.I succeed.I have to create jenkins-ansible job which will make the start and stop the Listener on remote server.  
My ansible hosts file looks like that :

[Remote\_Server\_Name]  
X.X.X.X ansible\_user=… (user on remote server)

When I try to ping ansible remote\_server -m ping -vvv I get the next message

ansible 2.7.9  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible  
python version = 2.7.5 (default, Apr 9 2019, 16:02:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36.0.1)]  
Using /etc/ansible/ansible.cfg as config file  
/etc/ansible/hosts did not meet host\_list requirements, check plugin documentation if this is unexpected  
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected  
Parsed /etc/ansible/hosts inventory source with ini plugin  
META: ran handlers  
\<x.x.x.x\> ESTABLISH SSH CONNECTION FOR USER: oracle  
\<x.x.x.x\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d66e4730e7 x.x.x.x ‘/bin/sh -c ‘"’“‘echo ~oracle && sleep 0’”’"‘’  
\<x.x.x.x\> (255, ‘’, ‘Permission denied (publickey,gssapi-with-mic,password).\r\n’)  
x.x.x.x | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-with-mic,password).”,  
“unreachable”: true

Please help me !! Thank you.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 25, 2019, 7:56am UTC](https://forum.ansible.com/t/ansible-problem/30184/2 "2019-04-25T07:56:51Z")

</div>

You need to sort out the authentication:  
[https://docs.ansible.com/ansible/latest/user\_guide/intro\_getting\_started.html#remote-connection-information](https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html#remote-connection-information)

---

<div class="post-metadata">

**Author:** ![arminm.zira](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@arminm.zira](https://forum.ansible.com/u/arminm.zira)\
**Post date:** [April 25, 2019, 8:40am UTC](https://forum.ansible.com/t/ansible-problem/30184/3 "2019-04-25T08:40:21Z")

</div>

Dear Dick Visser,

I did the following :

After installation ansible version 2.7.9 I configured ssh:

1. on my ansible server I started ssh-keygen command as jenkins user  
2.after that started ssh-copy-id -i /path to .pub oracle@remote\_server  
3.Finally I was loging in without password [ssh oracle@remote\_server]

After that, I configured ansible hosts file:

[Remote\_Server\_Name]

X.X.X.X ansible\_user=oracle

In ansible.conf file I was uncomment remote user=oracle; private\_key\_file=path to id\_rsa and host\_key\_checking

When I run ansible Remote\_Server\_Name -m ping -vvvv I get the following:

ansible 2.7.9

config file = /etc/ansible/ansible.cfg

configured module search path = [u’/var/lib/jenkins/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]

ansible python module location = /usr/lib/python2.7/site-packages/ansible

executable location = /bin/ansible

python version = 2.7.5 (default, Apr 9 2019, 16:02:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36.0.1)]

Using /etc/ansible/ansible.cfg as config file

setting up inventory plugins

/etc/ansible/hosts did not meet host\_list requirements, check plugin documentation if this is unexpected

/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected

Parsed /etc/ansible/hosts inventory source with ini plugin

Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc

META: ran handlers

\<X.X.X.X\> ESTABLISH SSH CONNECTION FOR USER: oracle

\<X.X.X.X\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 X.X.X.X ‘/bin/sh -c ‘"’“‘echo ~oracle && sleep 0’”’"‘’

\<X.X.X.X\> (0, ‘/home/oracle\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 “/var/lib/jenkins/.ansible/cp/d66e4730e7” does not exist\r\ndebug2: resolving “172.20.20.102” port 22\r\ndebug2: ssh\_connect\_direct: needpriv 0\r\ndebug1: Connecting to X.X.X.X [X.X.X.X] port 22.\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: fd 3 clearing O\_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9999 ms remain after connect\r\ndebug1: identity file /var/lib/jenkins/.ssh/id\_rsa type 1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /var/lib/jenkins/.ssh/id\_rsa-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\_4.3\r\ndebug1: match: OpenSSH\_4.3 pat OpenSSH\_4_ compat 0x00000000\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: Authenticating to X.X.X.X as 'oracle'\r\ndebug3: hostkeys\_foreach: reading file “/var/lib/jenkins/.ssh/known\_hosts”\r\ndebug3: record\_hostkey: found key type RSA in file /var/lib/jenkins/.ssh/known\_hosts:1\r\ndebug3: load\_hostkeys: loaded 1 keys from X.X.X.X\r\ndebug3: order\_hostkeyalgs: prefer hostkeyalgs: [ssh-rsa-cert-v01@openssh.com](mailto:ssh-rsa-cert-v01@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,curve25519-sha256@libssh.org](mailto:curve25519-sha256,curve25519-sha256@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-cert-v01@openssh.com](mailto:ssh-rsa-cert-v01@openssh.com),rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss\r\ndebug2: ciphers ctos: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: ciphers stoc: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: MACs ctos: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: [zlib@openssh.com](mailto:zlib@openssh.com),zlib,none\r\ndebug2: compression stoc: [zlib@openssh.com](mailto:zlib@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-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,rijndael-cbc@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,rijndael-cbc@lysator.liu.se\r\ndebug2: MACs ctos: [hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com](mailto:hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: MACs stoc: [hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com](mailto:hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com),hmac-sha1-96,hmac-md5-96\r\ndebug2: compression ctos: [none,zlib@openssh.com](mailto:none,zlib@openssh.com)\r\ndebug2: compression stoc: [none,zlib@openssh.com](mailto:none,zlib@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-sha1\r\ndebug1: kex: host key algorithm: ssh-rsa\r\ndebug1: kex: server-\>client cipher: aes128-ctr MAC: hmac-sha1 compression: [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug1: kex: client-\>server cipher: aes128-ctr MAC: hmac-sha1 compression: [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug1: kex: diffie-hellman-group-exchange-sha1 need=20 dh\_need=20\r\ndebug1: kex: diffie-hellman-group-exchange-sha1 need=20 dh\_need=20\r\ndebug3: send packet: type 34\r\ndebug1: SSH2\_MSG\_KEX\_DH\_GEX\_REQUEST(1024\<7680\<8192) sent\r\ndebug3: receive packet: type 31\r\ndebug1: got SSH2\_MSG\_KEX\_DH\_GEX\_GROUP\r\ndebug2: bits set: 3104/6144\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:3whIYW6eJ7A17tgVJc6TsCmIaovRSSnxk178Ft1WCLQ\r\ndebug3: hostkeys\_foreach: reading file “/var/lib/jenkins/.ssh/known\_hosts”\r\ndebug3: record\_hostkey: found key type RSA in file /var/lib/jenkins/.ssh/known\_hosts:1\r\ndebug3: load\_hostkeys: loaded 1 keys from X.X.X.X\r\ndebug1: Host 'X.X.X.X' is known and matches the RSA host key.\r\ndebug1: Found key in /var/lib/jenkins/.ssh/known\_hosts:1\r\ndebug2: bits set: 3109/6144\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: /var/lib/jenkins/.ssh/id\_rsa (0x55fd34a9af50), explicit, agent\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 51\r\ndebug1: Authentications that can continue: publickey,gssapi-with-mic,password\r\ndebug3: start over, passed a different list publickey,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:989)\n\r\ndebug1: Unspecified GSS failure. Minor code may provide more information\nNo Kerberos credentials available (default cache: KEYRING:persistent:989)\n\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod\_lookup publickey\r\ndebug3: remaining preferred: ,hostbased,publickey\r\ndebug3: authmethod\_is\_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /var/lib/jenkins/.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:8vY7u7LJ5gr3srDsYbb0s7xHr1Jadtvvo7vUMm0/zEc\r\ndebug3: sign\_and\_send\_pubkey: RSA SHA256:8vY7u7LJ5gr3srDsYbb0s7xHr1Jadtvvo7vUMm0/zEc\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 X.X.X.X ([X.X.X.X]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver\_listen: temporary control path /var/lib/jenkins/.ansible/cp/d66e4730e7.3FPOP3WHfzoBcixY\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 [/var/lib/jenkins/.ansible/cp/d66e4730e7]\r\ndebug3: muxserver\_listen: mux listener channel 0 fd 5\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 14991\r\ndebug2: fd 5 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 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 = 14993\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug3: mux\_master\_read\_cb: channel 1 packet type 0x10000002 len 106\r\ndebug2: process\_mux\_new\_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term “xterm-256color”, cmd “/bin/sh -c 'echo ~oracle && 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\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 ~oracle && 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\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 97\r\ndebug2: channel 2: rcvd close\r\ndebug2: channel 2: close\_read\r\ndebug2: channel 2: input open → closed\r\ndebug3: channel 2: will not send data after close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close\_write\r\ndebug2: channel 2: output drain → closed\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/0 fd 6/6 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 6/6 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’)

\<X.X.X.X\> ESTABLISH SSH CONNECTION FOR USER: oracle

\<X.X.X.X\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 X.X.X.X ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “`echo /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073`” && echo ansible-tmp-1556180604.59-156091100744073=“`echo /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073`” ) && sleep 0’“'”‘’

\<X.X.X.X\> (0, ‘ansible-tmp-1556180604.59-156091100744073=/home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073\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 = 14993\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/ping.py

\<X.X.X.X\> PUT /var/lib/jenkins/.ansible/tmp/ansible-local-14980n78sef/tmpEHVOXv TO /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.py

\<X.X.X.X\> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 ‘[X.X.X.X]’

\<X.X.X.X\> (0, ‘sftp\> put /var/lib/jenkins/.ansible/tmp/ansible-local-14980n78sef/tmpEHVOXv /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.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 = 14993\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\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH\_FXP\_REALPATH . → /home/oracle size 0\r\ndebug3: Looking up /var/lib/jenkins/.ansible/tmp/ansible-local-14980n78sef/tmpEHVOXv\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/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.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:4290\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 4290 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”)

\<X.X.X.X\> ESTABLISH SSH CONNECTION FOR USER: oracle

\<X.X.X.X\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 X.X.X.X ‘/bin/sh -c ‘"’“‘chmod u+x /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/ /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.py && sleep 0’”’"‘’

\<X.X.X.X\> (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 = 14993\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’)

\<X.X.X.X\> ESTABLISH SSH CONNECTION FOR USER: oracle

\<X.X.X.X\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 -tt X.X.X.X ‘/bin/sh -c ‘"’"’/usr/bin/python /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.py && sleep 0’“'”‘’

\<X.X.X.X\> (1, ’ File “/home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.py”, line 39\r\n with open(module, 'wb') as f:\r\n ^\r\nSyntaxError: invalid syntax\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 = 14993\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 X.X.X.X closed.\r\n’)

\<X.X.X.X\> Failed to connect to the host via ssh: OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017

debug1: Reading configuration data /etc/ssh/ssh\_config

debug1: /etc/ssh/ssh\_config line 58: Applying options for \*

debug1: auto-mux: Trying existing master

debug2: fd 3 setting O\_NONBLOCK

debug2: mux\_client\_hello\_exchange: master version 4

debug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote

debug3: mux\_client\_request\_session: entering

debug3: mux\_client\_request\_alive: entering

debug3: mux\_client\_request\_alive: done pid = 14993

debug3: mux\_client\_request\_session: session request sent

debug1: mux\_client\_request\_session: master session id: 2

debug3: mux\_client\_read\_packet: read header failed: Broken pipe

debug2: Received exit status from master 1

Shared connection to X.X.X.X closed.

\<X.X.X.X\> ESTABLISH SSH CONNECTION FOR USER: oracle

\<X.X.X.X\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘IdentityFile=“/var/lib/jenkins/.ssh/id\_rsa”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/d66e4730e7 X.X.X.X ‘/bin/sh -c ‘"’“‘rm -f -r /home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/ \> /dev/null 2\>&1 && sleep 0’”’"‘’

\<X.X.X.X\> (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 = 14993\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’)

X.X.X.X | FAILED! =\> {

“changed”: false,

“module\_stderr”: “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 = 14993\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 X.X.X.X closed.\r\n”,

“module\_stdout”: " File "/home/oracle/.ansible/tmp/ansible-tmp-1556180604.59-156091100744073/AnsiballZ\_ping.py", line 39\r\n with open(module, ‘wb’) as f:\r\n ^\r\nSyntaxError: invalid syntax\r\n",

“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,

“rc”: 1

}

Dana četvrtak, 25. travnja 2019. u 09:57:17 UTC+2, korisnik Dick Visser napisao je:
