title: Ansible yml copy file from network location
body: <p>So I have an ansible playbook as follows:</p>
  
  <pre><code>#WINDOWS#
  ---
  - hosts: windows   tasks:
  
    - name:  copy file
      raw: '"net use M: "\\somemachinename\someLocation" /user:username password"'
      raw: '"xcopy M:\isntaller.exe C:\installerlocation /Y"'
      raw: '"net use M: /delete /y"'
  </code></pre>
  
  <p>The file does exist at the network location and the username password are valid. The task doesn't report any errors. But the file never gets copied across. </p>
  
  <p>Does anyone know if I am doing the playbook syntax wrong? Or is there a better way to get files across network location in ansible setup?</p>
  
  <p>P.S. I do not have access to the ansible server. Although I know it is a Red Hat Linux server.</p>