title: How to fix Memory error in Ansible?
body: <p>Now i m trying to copy the file from <code>/Build_Artifacts/build.zip</code> to <code>/Build_Artifacts/</code>. Permission was set to <code>777</code> for <code>/Build_Artifacts/</code>.</p>
  
  <p>while running the playbook it reports as Memory error!!</p>
  
  <p><code>cat deploy.yml</code></p>
  
  <pre><code> hosts: "{{host}}" user: soundar tasks:
  </code></pre>
  
  <hr>
  
  <pre><code>    - name: copying
        copy: src=/Build_Artifacts/build.zip  dest=/Build_Artifacts/
  
  jenkins@ip-10-0-6-189:~$ sudo ansible-playbook /var/lib/jenkins/deploy.yml --extra-vars "host=Resurgence-Dev"
  
  PLAY [Resurgence-Dev] **********************************************************
  
  TASK [setup] *******************************************************************
  ok: [10.0.3.233]
  
  TASK [copying] *****************************************************************
  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: MemoryError
  fatal: [10.0.3.233]: FAILED! =&gt; {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}
          to retry, use: --limit @/var/lib/jenkins/deploy.retry
  
  PLAY RECAP *********************************************************************
  10.0.3.233                 : ok=1    changed=0    unreachable=0    failed=1
  </code></pre>