Ansible copy module hangs on CentOS 7

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:

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