title: template transfer error in ansible 2.0
body: <p>I have a really simple role, that work well in ansible 1.9.4 but when I run the same role using ansible 2.0, I got an error during template transfer. Is something change for template module in ansible 2.0?</p>
  
  <p>My role layout:</p>
  
  <pre><code>.
  |-- handlers
  |   `-- main.yml
  |-- tasks
  |   `-- main.yml
  |-- templates
  |   |-- etc_default_isc-dhcp-server.j2
  |   `-- etc_dhcp_dhcpd.conf.j2
  `-- vars
      `-- main.yml
  </code></pre>
  
  <p>I have test the connectivity with the remote server with ansible ping module:</p>
  
  <pre><code>ansible -m ping all -u vagrant -k
  SSH password:
  
  192.168.33.10 | SUCCESS =&gt; {
      "changed": false,
      "ping": "pong"
  }
  </code></pre>
  
  <p>Here is the task on which I am getting an error:</p>
  
  <pre><code>- name: Write the modified 'isc-dhcp-server' file
     template: 
      src: templates/etc_default_isc-dhcp-server.j2 
      dest: /etc/default/isc-dhcp-server 
      backup: yes
  </code></pre>
  
  <p>Here is an error:</p>
  
  <pre><code>&lt;192.168.33.10&gt; ESTABLISH SSH CONNECTION FOR USER: vagrant
  &lt;192.168.33.10&gt; SSH: EXEC sshpass -d25 ssh -C -vvv -o ForwardAgent=yes -o StrictHostKeyChecking=no -o Port=22 -o User=vagrant -o ConnectTimeout=10 -tt 192.168.33.10 '( umask 22 &amp;&amp; mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454001802.16-105340173307790 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454001802.16-105340173307790 )" )'
  &lt;192.168.33.10&gt; ESTABLISH SSH CONNECTION FOR USER: vagrant
  &lt;192.168.33.10&gt; SSH: EXEC sshpass -d25 ssh -C -vvv -o ForwardAgent=yes -o StrictHostKeyChecking=no -o Port=22 -o User=vagrant -o ConnectTimeout=10 -tt 192.168.33.10 '/bin/sh -c '"'"'sudo -HE -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-phyquqhgvqgsigneasanzgmfyvgsoyby; rc=flag; [ -r /etc/default/isc-dhcp-server ] || rc=2; [ -f /etc/default/isc-dhcp-server ] || rc=1; [ -d /etc/default/isc-dhcp-server ] &amp;&amp; rc=3; python -V 2&gt;/dev/null || rc=4; [ x"$rc" != "xflag" ] &amp;&amp; echo "${rc}  "/etc/default/isc-dhcp-server &amp;&amp; exit 0; (python -c '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1();
  afile = open("'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'/etc/default/isc-dhcp-server'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'", "rb")
  buf = afile.read(BLOCKSIZE)
  while len(buf) &gt; 0:
      hasher.update(buf)
      buf = afile.read(BLOCKSIZE)
  afile.close()
  print(hasher.hexdigest())'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' 2&gt;/dev/null) || (python -c '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'import sha; BLOCKSIZE = 65536; hasher = sha.sha();
  afile = open("'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'/etc/default/isc-dhcp-server'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'", "rb")
  buf = afile.read(BLOCKSIZE)
  while len(buf) &gt; 0:
      hasher.update(buf)
      buf = afile.read(BLOCKSIZE)
  afile.close()
  print(hasher.hexdigest())'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' 2&gt;/dev/null) || (echo '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'0  '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'/etc/default/isc-dhcp-server)'"'"'"'"'"'"'"'"''"'"''
  &lt;192.168.33.10&gt; PUT /var/folders/rq/yhlwx3c971x6p88qwmvhpg600000gn/T/tmpb1lTNM TO /home/vagrant/.ansible/tmp/ansible-tmp-1454001802.16-105340173307790/source
  &lt;192.168.33.10&gt; SSH: EXEC sshpass -d25 sftp -b - -C -vvv -o ForwardAgent=yes -o StrictHostKeyChecking=no -o Port=22 -o User=vagrant -o ConnectTimeout=10 '[192.168.33.10]'
  fatal: [192.168.33.10]: UNREACHABLE! =&gt; {"changed": false, "msg": "ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
  
  PLAY RECAP *********************************************************************
  192.168.33.10              : ok=1    changed=0    unreachable=1    failed=0
  </code></pre>