You need to have Python installed on the managed host.

On Sunday, February 4, 2018 at 6:22:54 PM UTC+5:30, jonatha...@clearsys.re 
wrote:
>
> Hi everybody,
>
> I have some problems to use ansible.
>
>
> I use ansible version 2.4.3.0 i
>
> I testing just one host with IP and port (I have port fowarding).
> I copying ssh pub key (ssh-copy-id).
> I try to install Git on the target serveur. 
> tasks:
> - name: Installation de Git
> apt: name=git update_cache=yes
>
>
> When I lauch ansible (ansible-playbook -i hosts playbook.yml -vvvvvvvv), I 
> have this message error : 
>
> OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016\r\ndebug1: 
> Reading configuration data /etc/ssh/ssh_config\r\ndebug1: 
> /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: 
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: 
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: 
> request forwardings: 0 local, 0 remote\r\ndebug3: 
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: 
> entering\r\ndebug3: mux_client_request_alive: done pid = 5417\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 165.169.240.98 
> closed.\r\n", 
>     "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n"
>
>
> But if I lauch ansible ssh command in the terminal (just copy and paste 
> ansible ssh command : ssh -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 -tt 165.169.240.98), 
> connection wil be establish normaly
>
>
>
> here the result of the -vvvvv ansible-playbook command
> -----------------------
> jrecly@debian:~/ansible$ ansible-playbook -i hosts playbook.yml -vvvvvvvv 
> ansible-playbook 2.4.3.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = 
> [u'/home/jrecly/.ansible/plugins/modules', 
> u'/usr/share/ansible/plugins/modules']
>   ansible python module location = /usr/lib/python2.7/dist-packages/ansible
>   executable location = /usr/bin/ansible-playbook
>   python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
> Using /etc/ansible/ansible.cfg as config file
> setting up inventory plugins
> Parsed /home/jrecly/ansible/hosts inventory source with ini plugin
> Loading callback plugin default of type stdout, v2.0 from 
> /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
>
> PLAYBOOK: playbook.yml 
> ***********************************************************************************************************************************************************************************************************************
> 1 plays in playbook.yml
>
> PLAY [Securisation des serveurs] 
> *************************************************************************************************************************************************************************************************************
>
> TASK [Gathering Facts] 
> ***********************************************************************************************************************************************************************************************************************
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/basic.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/namespace.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/ansible_collector.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/default_collectors.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/_text.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/parsing/convert_bool.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/parsing/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/pycompat24.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/six/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/compat.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/timeout.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/collector.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/freebsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/openbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/base.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/dragonfly.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/dragonfly.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/aix.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/aix.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/linux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/platform.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/hpux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/user.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/hurd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/other/facter.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/sunos.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/hpux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/distribution.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/freebsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/openbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/darwin.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/linux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/sunos.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/sunos.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/apparmor.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/openbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/local.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/other/ohai.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/other/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/service_mgr.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/hurd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/hpux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/fips.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/selinux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/pkg_mgr.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/dns.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/base.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/darwin.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/dragonfly.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/ssh_pub_keys.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/__init__.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/lsb.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/date_time.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/netbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/base.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/cmdline.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/freebsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/netbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/hardware/netbsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/caps.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/env.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/linux.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/system/python.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/network/generic_bsd.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/virtual/sysctl.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/utils.py
> Using module_utils file 
> /usr/lib/python2.7/dist-packages/ansible/module_utils/facts/sysctl.py
> Using module file 
> /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
> <165.169.240.98> ESTABLISH SSH CONNECTION FOR USER: root
> <165.169.240.98> SSH: ansible.cfg set ssh_args: 
> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: 
> (-o)(Port=2211)
> <165.169.240.98> SSH: ansible_password/ansible_ssh_pass not set: 
> (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
> set: (-o)(User=root)
> <165.169.240.98> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
> <165.169.240.98> SSH: found only ControlPersist; added ControlPath: 
> (-o)(ControlPath=/home/jrecly/.ansible/cp/d29cd310c0)
> <165.169.240.98> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 165.169.240.98 '/bin/sh -c 
> '"'"'echo ~ && sleep 0'"'"''
> <165.169.240.98> (0, '/root\n', 'OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 
> 1.0.1t  3 May 2016\r\ndebug1: Reading configuration data 
> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying 
> options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 
> setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 
> 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 
> remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: 
> mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: 
> done pid = 5417\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')
> <165.169.240.98> ESTABLISH SSH CONNECTION FOR USER: root
> <165.169.240.98> SSH: ansible.cfg set ssh_args: 
> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: 
> (-o)(Port=2211)
> <165.169.240.98> SSH: ansible_password/ansible_ssh_pass not set: 
> (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
> set: (-o)(User=root)
> <165.169.240.98> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
> <165.169.240.98> SSH: found only ControlPersist; added ControlPath: 
> (-o)(ControlPath=/home/jrecly/.ansible/cp/d29cd310c0)
> <165.169.240.98> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 165.169.240.98 '/bin/sh -c 
> '"'"'( umask 77 && mkdir -p "` echo 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053 `" && echo 
> ansible-tmp-1517748311.88-280790357184053="` echo 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053 `" ) && sleep 
> 0'"'"''
> <165.169.240.98> (0, 
> 'ansible-tmp-1517748311.88-280790357184053=/root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053\n',
>  
> 'OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016\r\ndebug1: 
> Reading configuration data /etc/ssh/ssh_config\r\ndebug1: 
> /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: 
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: 
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: 
> request forwardings: 0 local, 0 remote\r\ndebug3: 
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: 
> entering\r\ndebug3: mux_client_request_alive: done pid = 5417\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')
> <165.169.240.98> PUT /tmp/tmpsE9CUa TO 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/setup.py
> <165.169.240.98> SSH: ansible.cfg set ssh_args: 
> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: 
> (-o)(Port=2211)
> <165.169.240.98> SSH: ansible_password/ansible_ssh_pass not set: 
> (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
> set: (-o)(User=root)
> <165.169.240.98> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
> <165.169.240.98> SSH: found only ControlPersist; added ControlPath: 
> (-o)(ControlPath=/home/jrecly/.ansible/cp/d29cd310c0)
> <165.169.240.98> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 '[165.169.240.98]'
> <165.169.240.98> (0, 'sftp> put /tmp/tmpsE9CUa 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/setup.py\n', 
> 'OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016\r\ndebug1: 
> Reading configuration data /etc/ssh/ssh_config\r\ndebug1: 
> /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: 
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: 
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: 
> request forwardings: 0 local, 0 remote\r\ndebug3: 
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: 
> entering\r\ndebug3: mux_client_request_alive: done pid = 5417\r\ndebug3: 
> mux_client_request_session: session request sent\r\ndebug1: 
> mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 
> 3\r\ndebug2: Server supports extension "posix-...@openssh.com 
> <javascript:>" revision 1\r\ndebug2: Server supports extension "
> sta...@openssh.com <javascript:>" revision 2\r\ndebug2: Server supports 
> extension "fsta...@openssh.com <javascript:>" revision 2\r\ndebug2: 
> Server supports extension "hard...@openssh.com <javascript:>" revision 
> 1\r\ndebug2: Server supports extension "fs...@openssh.com <javascript:>" 
> revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: 
> SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up 
> /tmp/tmpsE9CUa\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:/root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/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:32637\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 32637 bytes at 
> 163840\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: 
> SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: 
> Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
> <165.169.240.98> ESTABLISH SSH CONNECTION FOR USER: root
> <165.169.240.98> SSH: ansible.cfg set ssh_args: 
> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: 
> (-o)(Port=2211)
> <165.169.240.98> SSH: ansible_password/ansible_ssh_pass not set: 
> (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
> set: (-o)(User=root)
> <165.169.240.98> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
> <165.169.240.98> SSH: found only ControlPersist; added ControlPath: 
> (-o)(ControlPath=/home/jrecly/.ansible/cp/d29cd310c0)
> <165.169.240.98> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 165.169.240.98 '/bin/sh -c 
> '"'"'chmod u+x 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/ 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/setup.py && 
> sleep 0'"'"''
> <165.169.240.98> (0, '', 'OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 
> May 2016\r\ndebug1: Reading configuration data 
> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying 
> options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 
> setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 
> 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 
> remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: 
> mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: 
> done pid = 5417\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')
> <165.169.240.98> ESTABLISH SSH CONNECTION FOR USER: root
> <165.169.240.98> SSH: ansible.cfg set ssh_args: 
> (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: 
> (-o)(Port=2211)
> <165.169.240.98> SSH: ansible_password/ansible_ssh_pass not set: 
> (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
> <165.169.240.98> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
> set: (-o)(User=root)
> <165.169.240.98> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
> <165.169.240.98> SSH: found only ControlPersist; added ControlPath: 
> (-o)(ControlPath=/home/jrecly/.ansible/cp/d29cd310c0)
> <165.169.240.98> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o 
> ControlPersist=60s -o Port=2211 -o KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o 
> ControlPath=/home/jrecly/.ansible/cp/d29cd310c0 -tt 165.169.240.98 '/bin/sh 
> -c '"'"'/usr/bin/python 
> /root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/setup.py; rm 
> -rf "/root/.ansible/tmp/ansible-tmp-1517748311.88-280790357184053/" > 
> /dev/null 2>&1 && sleep 0'"'"''
> <165.169.240.98> (0, '/bin/sh: 1: /usr/bin/python: not found\r\n', 
> 'OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016\r\ndebug1: 
> Reading configuration data /etc/ssh/ssh_config\r\ndebug1: 
> /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: 
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: 
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: 
> request forwardings: 0 local, 0 remote\r\ndebug3: 
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: 
> entering\r\ndebug3: mux_client_request_alive: done pid = 5417\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 165.169.240.98 
> closed.\r\n')
> fatal: [BDD1]: FAILED! => {
>     "changed": false, 
>     "module_stderr": "OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 
> 2016\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: 
> /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: 
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: 
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: 
> request forwardings: 0 local, 0 remote\r\ndebug3: 
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: 
> entering\r\ndebug3: mux_client_request_alive: done pid = 5417\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 165.169.240.98 
> closed.\r\n", 
>     "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", 
>     "msg": "MODULE FAILURE", 
>     "rc": 0
> }
> to retry, use: --limit @/home/jrecly/ansible/playbook.retry
>
> PLAY RECAP 
> ***********************************************************************************************************************************************************************************************************************************
> BDD1                       : ok=0    changed=0    unreachable=0    
> failed=1 
> -----------------------
>
>
> if you have some idea to help me ....
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2cc67784-2ca3-4cc4-acde-de8afc012388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to