title: Ansible - Check if multiple files exists locally and copy to remote
body: <p>I'm very new to Ansible and I'm trying to check if files exists in my Ansible control machine(At least one should be), if so copy to remote location.</p>
  
  <p>I've came up with the below, but ansible is checking the files in the remote instead of local. I'm not exactly sure -how to use "with_items" as well.</p>
  
  <pre><code>---
  - hosts: linux
    gather_facts: no
    vars:
     source_dir: /login/my_home
     server_type: WRITEVIEW
     files:
        - app.xslt
        - Configuration.xml
        - fcCN.xslt
  
    tasks:
     - name: Validate if file exists
       local_action: file path="{{ source_dir }}/{{ item }}" state=file
       with_items: files
  </code></pre>
  
  <p>Error Message:</p>
  
  <p><code>TASK [Validate if file exists] ******************************************************************************************************************************************
  failed: [remoteserver_1 -&gt; localhost] (item=files) =&gt; {"changed": false, "item": "files", "msg": "file (/login/my_home/files) is absent, cannot continue", "path": "/login/my_home/files", "state": "absent"}
  failed: [remoteserver_2 -&gt; localhost] (item=files) =&gt; {"changed": false, "item": "files", "msg": "file (/login/my_home/files) is absent, cannot continue", "path": "/login/my_home/files", "state": "absent"}</code></p>