I'm new to Ansible
I tried to copy the directory /home/.../Downloads/petlover from my local machine to a remote host /srv/web on AWS. Here is the code that I tested as a lab.
- name: Copy the Web Contents copy: src: /home/zigz/Downloads/petlover remote_src: no dest: /srv/web owner: apache group: apache mode: '0755'
The ansible get stuck at Copy step and can't finish. When I check the remote host on AWS, the files have already been copied. But the ansible get stuck on my local machine. Is there anything that I need to add to the code?