title: Ansible synchronize mode permissions
body: <p>I'm using an Ansible playbook to copy files between my host and a server. The thing is, I have to run the script repeatedly in order to upload some updates. At the beginning I was using the &quot;copy&quot; module of Ansible, but to improve performance of the synchronizing of files and directories, I've now switched to use the &quot;synchronize&quot; module. That way I can ensure Ansible uses rsync instead of sftp or scp.</p>
  <p>With the &quot;copy&quot; module, I was able to specify the file's mode in the destination host by adding the mode option (e.g. <code>mode=644</code>). I want to do that using synchronize, but it only has the <code>perms</code> option that accepts yes or no as values.</p>
  <p>Is there a way to specify the file's mode using &quot;synchronize&quot;, without having to inherit it?</p>
  <p>Thx!</p>