title: Hello new to ansible and a little stuck on copying with loops
body: <p>I have this</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: cp images
        copy:
          src: &quot;{{ item.src }} &quot;
          dest: &quot;{{ item.dest }}&quot;
          owner: root
          group: root
          mode: u=rw, g=rw, o=r
        loop:
          - { src: images/Juniper/VMX/vmx.18.2/images/virtioa.qcow2, dest: /opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtioa.qcow2}
          - { src: images/Juniper/VMX/vmx.18.2/images/virtiob.qcow2, dest: /opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtiob.qcow2}
          - { src: images/Juniper/VMX/vmx.18.2/images/virtioc.qcow2, dest: /opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtioc.qcow2}
          - { src: images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img, dest: /opt/unetlab/addons/qemu/vmxvfp-18.2R1.8-domestic-VFP/virtioa.qcow2}
          - { src: images/Juniper/VSRX/junos-vsrx3-x86-64-20.4R1.12.qcow2, dest: /opt/unetlab/addons/qemu/vsrxng-20.4R1.12/virtioa.qcow2}
          - { src: images/Juniper/QFX/vqfx-20.2R1-2019010209-pfe-qemu.qcow, dest: /opt/unetlab/addons/qemu/vqfxpfe-10K-F-20.2R1.10/hda.qcow}
          - { src: images/Juniper/QFX/vqfx-20.2R1.10-re-qemu.qcow2, dest: /opt/unetlab/addons/qemu/vqfxre-10K-F-20.2R1.10/hda.qcow2}
          - { src: images/Cisco/L2/vios_l2-adventerprisek9-m.SSA.high_iron_20180619.qcow2, dest: /opt/unetlab/addons/qemu/viosl2-adventerprisek9-m.03.2017/virtioa.qcow2}
          - { src: images/Cisco/L3/vios-adventerprisek9-m.vmdk.SPA.157-3.M3, dest: /opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.156-1.T/vios-adventerprisek9-m.SPA.156-1.T.vmdk}
  </code></pre>
  <p>I'm trying to use Ansible to auto set up EVE-NG
  I'm getting this error below</p>
  <pre><code>\n\t/home/ablake/Documents/Documents/personal-git/ansible/main/images/Juniper/VMX/vmx.18.2/images/virtiob.qcow2 
  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option&quot;}
  </code></pre>
  <p>Now I'm not 100% sure what I'm doing wrong, I see in the error log its got \n\t in front of the dir I have no idea where this is coming from, is this the problem? I don't know if it is or its just ansible debug</p>
  <p>now without the loop below</p>
  <pre class="lang-yaml prettyprint-override"><code>    - name: copy PFE to EVE-NG
        tags: QFX
        copy:
          src: images/Juniper/QFX/vqfx-20.2R1-2019010209-pfe-qemu.qcow
          dest: /opt/unetlab/addons/qemu/vqfxpfe-10K-F-20.2R1.10/hda.qcow
  </code></pre>
  <p>that works I maybe missing something super basic with loops but I don't understand the difference and I'm a little stuck sorry</p>
  <p>Also tried with quotes below</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: cp images
        copy:
          src: &quot;{{ item.src }} &quot;
          dest: &quot;{{ item.dest }}&quot;
        loop:
          - { src: 'images/Juniper/VMX/vmx.18.2/images/virtioa.qcow2', dest: '/opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtioa.qcow2'}
          - { src: 'images/Juniper/VMX/vmx.18.2/images/virtiob.qcow2', dest: '/opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtiob.qcow2'}
          - { src: 'images/Juniper/VMX/vmx.18.2/images/virtioc.qcow2', dest: '/opt/unetlab/addons/qemu/vmxvcp-18.2R1.8-domestic-VCP/virtioc.qcow2'}
          - { src: 'images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img', dest: '/opt/unetlab/addons/qemu/vmxvfp-18.2R1.8-domestic-VFP/virtioa.qcow2'}
          - { src: 'images/Juniper/VSRX/junos-vsrx3-x86-64-20.4R1.12.qcow2', dest: '/opt/unetlab/addons/qemu/vsrxng-20.4R1.12/virtioa.qcow2'}
          - { src: 'images/Juniper/QFX/vqfx-20.2R1-2019010209-pfe-qemu.qcow', dest: '/opt/unetlab/addons/qemu/vqfxpfe-10K-F-20.2R1.10/hda.qcow'}
          - { src: 'images/Juniper/QFX/vqfx-20.2R1.10-re-qemu.qcow2', dest: '/opt/unetlab/addons/qemu/vqfxre-10K-F-20.2R1.10/hda.qcow2'}
          - { src: 'images/Cisco/L2/vios_l2-adventerprisek9-m.SSA.high_iron_20180619.qcow2', dest: '/opt/unetlab/addons/qemu/viosl2-adventerprisek9-m.03.2017/virtioa.qcow2'}
          - { src: 'images/Cisco/L3/vios-adventerprisek9-m.vmdk.SPA.157-3.M3', dest: '/opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.156-1.T/vios-adventerprisek9-m.SPA.156-1.T.vmdk'}
  </code></pre>
  <p>same error below</p>
  <blockquote>
  <p>&quot;Could not find or access 'images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img '\nSearched in:\n\t/home/ablake/Documents/Documents/personal-git/ansible/main/files/images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img \n\t/home/ablake/Documents/Documents/personal-git/ansible/main/images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img \n\t/home/ablake/Documents/Documents/personal-git/ansible/main/files/images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img \n\t/home/ablake/Documents/Documents/personal-git/ansible/main/images/Juniper/VMX/vmx.18.2/images/vFPC-20180605.img  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option&quot;}</p>
  </blockquote>