Copy a folder from remote host to local using Ansible.

Can anyone help/suggest on how to copy a folder from remote host to local using Ansible? Appreciate any quick help on this

Can anyone help/suggest on how to copy a folder from remote host to local using Ansible? Appreciate any quick help on this

What about synchronize module?

Regards
         Racke

Try

  - hosts: remote_host
    tasks:
      - synchronize:
          mode: pull
          src: "{{ dir_on_remote_host }}"
          dest: "{{ dir_on_localhost }}"