**Cannot copy the files using copy module from local to GCP Vm instances **.
Dear community ,
I am using a custom plugin to connect to GCP and do SSH/SCP. The plugin I am using is here. GitHub - thenets/demo-ansible-gcp-iap: How connect Ansible using GCP IAP.
The problem is when I use copy module, it throws this error to me.
- name: Copying sample.txt
copy:
src: ./files/sample.txt
dest/opt/sample.txt
become: yes
run_once: true
The error i see is
msg": "Could not find or access './files/sample.txt'\nSearched in:\n\t/runner/project/files/./files/sample.txt\n\t/runner/project/./files/sample.txt\n\t/runner/project/files/./files/sample.txt\n\t/runner/project/./files/sample.txt on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option",
Also I created an issue to the author here . Cannot use copy module with this plugin · Issue #4 · thenets/demo-ansible-gcp-iap · GitHub
Could you please help ?