# Ansible copy module hangs on CentOS 7

**URL:** <https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782>\
**Category:** Ansible Project\
**Created:** [July 16, 2015, 12:01pm UTC](https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782 "2015-07-16T12:01:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Ilchev](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Martin\_Ilchev](https://forum.ansible.com/u/Martin_Ilchev)\
**Post date:** [July 16, 2015, 12:01pm UTC](https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782/1 "2015-07-16T12:01:25Z")

</div>

Hi Guys,

I have a playbook to copy DNS zone files from local directory to a remote one and restart the named service. The playbook is as follows:

---

<div class="post-metadata">

**Author:** ![Martin\_Ilchev](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Martin\_Ilchev](https://forum.ansible.com/u/Martin_Ilchev)\
**Post date:** [July 24, 2015, 2:12pm UTC](https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782/2 "2015-07-24T14:12:45Z")

</div>

After a lot of digging I was able to find the source of the problem. There was an sshd\_config.j2 template that was taken from Debian based system. In it the default settings for Subsystem is different than CentOS

# Debian

Subsystem sftp /usr/lib/openssh/sftp-server  
#centos  
Subsystem sftp /usr/libexec/openssh/sftp-server

so lib vs libexec after restoring the config file back to normal the playbook completes without errors.

Hopefully this will save someone else a couple of days.  
M
